WP Admin UI Customize - Version 1.3.8

Version Description

  • Fixed bug : Sortables settings of Admin bar settings and Side menu settings.
  • Fixed bug : Get the directory URL on use SSL.
  • Modified the HTML of some settings screen.
Download this release

Release Info

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

Code changes from version 1.3.7.1 to 1.3.8

images/3.5.1/appearance_menus_add_new_menu.png DELETED
Binary file
images/3.5.1/appearance_menus_delete_menu.png DELETED
Binary file
images/3.6/appearance_menus_add_new_menu.png ADDED
Binary file
images/{appearance_menus_add_new_menu_of_location.png → 3.6/appearance_menus_add_new_menu_of_location.png} RENAMED
File without changes
images/3.6/appearance_menus_delete_menu.png ADDED
Binary file
images/appearance_menus_add_new_menu.png CHANGED
Binary file
images/appearance_menus_delete_menu.png CHANGED
Binary file
inc/list_variables.php CHANGED
@@ -38,12 +38,18 @@ if( is_multisite() ) {
38
  <th><strong>[blog_name]</strong></th>
39
  <td>
40
  <code><?php echo get_bloginfo( 'name' ); ?></code>
 
 
 
41
  </td>
42
  </tr>
43
  <tr>
44
  <th><strong>[blog_url]</strong></th>
45
  <td>
46
  <code><?php echo get_bloginfo( 'url' ); ?></code>
 
 
 
47
  </td>
48
  </tr>
49
  <tr>
38
  <th><strong>[blog_name]</strong></th>
39
  <td>
40
  <code><?php echo get_bloginfo( 'name' ); ?></code>
41
+ <?php if( is_multisite() ) : ?>
42
+ <span class="description"><?php _e( 'Blog name of logged in.' , $this->ltd ); ?></span>
43
+ <?php endif; ?>
44
  </td>
45
  </tr>
46
  <tr>
47
  <th><strong>[blog_url]</strong></th>
48
  <td>
49
  <code><?php echo get_bloginfo( 'url' ); ?></code>
50
+ <?php if( is_multisite() ) : ?>
51
+ <span class="description"><?php _e( 'Blog URL of logged in.' , $this->ltd ); ?></span>
52
+ <?php endif; ?>
53
  </td>
54
  </tr>
55
  <tr>
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->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
10
- wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
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 . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
10
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.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->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
  ?>
19
 
@@ -34,22 +34,143 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
34
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
35
 
36
  <div id="poststuff">
 
37
  <div id="post-body" class="metabox-holder columns-2">
38
 
39
  <div id="postbox-container-1" class="postbox-container">
40
  <div id="right_menus">
41
- <?php echo $this->set_setting_admin_bar( 'right' , $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  </div>
43
  </div>
44
 
45
  <div id="postbox-container-2" class="postbox-container">
46
  <div id="left_menus">
47
- <?php echo $this->set_setting_admin_bar( 'left' , $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  </div>
49
  </div>
50
 
51
  <br class="clear">
 
52
  </div>
 
53
  </div>
54
 
55
  <div id="can_menus" class="metabox-holder columns-1">
@@ -60,7 +181,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
60
 
61
  <h4><?php _e( 'Custom' ); ?> <?php _e( 'Menus' ); ?></h4>
62
  <?php $menu_widget = array( 'id' => "custom_node" , 'title' => "" , 'parent' => '' , 'href' => "" , 'group' => false , 'new' => true , 'subnode' => false ); ?>
63
- <?php echo $this->admin_bar_menu_widget( $menu_widget ); ?>
64
  <div class="clear"></div>
65
 
66
  <h4><?php _e( 'Left' ); ?> <?php _e( 'Menus' ); ?></h4>
@@ -69,20 +190,20 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
69
 
70
  <p class="description"><?php echo $node_id; ?></p>
71
  <?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
72
- <?php echo $this->admin_bar_menu_widget( $menu_widget ); ?>
73
 
74
- <?php foreach( $AllDefaultNodes["left"]["sub"] as $child_node_id => $child_node ) : ?>
75
 
76
- <?php if( $child_node->parent == $node_id ) : ?>
77
 
78
- <?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
79
- <?php echo $this->admin_bar_menu_widget( $menu_widget ); ?>
80
 
81
- <?php endif; ?>
82
 
83
- <?php endforeach; ?>
84
 
85
- <div class="clear"></div>
86
 
87
  <?php endforeach; ?>
88
 
@@ -94,14 +215,14 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
94
 
95
  <p class="description"><?php echo $node_id; ?></p>
96
  <?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
97
- <?php echo $this->admin_bar_menu_widget( $menu_widget ); ?>
98
 
99
  <?php foreach( $AllDefaultNodes["right"]["sub"] as $child_node_id => $child_node ) : ?>
100
 
101
  <?php if( $child_node->parent == $node_id ) : ?>
102
 
103
  <?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
104
- <?php echo $this->admin_bar_menu_widget( $menu_widget ); ?>
105
 
106
  <?php endif; ?>
107
 
@@ -142,6 +263,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
142
  </style>
143
 
144
  <script type="text/javascript">
 
 
 
145
  jQuery(document).ready(function($) {
146
 
147
  var $Form = $("#wauc_setting_admin_bar_menu");
@@ -156,8 +280,8 @@ jQuery(document).ready(function($) {
156
  zIndex: 5,
157
  containment: 'document',
158
  stop: function(e,ui) {
159
- widget_each();
160
- menu_sortable();
161
  }
162
  });
163
 
@@ -192,7 +316,7 @@ jQuery(document).ready(function($) {
192
  return false;
193
  });
194
 
195
- var menu_sortable = function menu_sortable() {
196
 
197
  $('#wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside, #wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside .widget .widget-inside .submenu').sortable({
198
  placeholder: "widget-placeholder",
@@ -210,17 +334,14 @@ jQuery(document).ready(function($) {
210
  if ( ui.item.hasClass('deleting') ) {
211
  ui.item.remove();
212
  }
213
- widget_each();
214
  },
215
  });
216
 
217
  }
218
- $('#poststuff #post-body').mouseenter(function() {
219
- menu_sortable();
220
- });
221
- menu_sortable();
222
 
223
- function widget_each() {
224
  var $Count = 0;
225
  $('#wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside .widget').each(function() {
226
  var $InputId = $(this).children(".widget-inside").children(".settings").children(".description").children(".idtext");
@@ -269,7 +390,7 @@ jQuery(document).ready(function($) {
269
  $Count++;
270
  });
271
  }
272
- widget_each();
273
 
274
  });
275
  </script>
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 . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
15
  wp_enqueue_style( 'thickbox' );
16
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
17
 
18
  ?>
19
 
34
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
35
 
36
  <div id="poststuff">
37
+
38
  <div id="post-body" class="metabox-holder columns-2">
39
 
40
  <div id="postbox-container-1" class="postbox-container">
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' , $this->ltd ); ?></span></h3>
45
+ <div class="inside">
46
+
47
+ <?php if( empty( $Data ) ) : ?>
48
+
49
+ <?php foreach( $AllDefaultNodes["right"]["main"] as $main_node) : ?>
50
+
51
+ <?php $pnsn = array(); ?>
52
+ <?php if( !empty( $AllDefaultNodes["right"]["sub"] ) ) : ?>
53
+
54
+ <?php foreach( $AllDefaultNodes["right"]["sub"] as $sub_node) : ?>
55
+
56
+ <?php if( $main_node->id == $sub_node->parent ) : ?>
57
+
58
+ <?php $pnsn[] = array( 'id' => $sub_node->id , 'title' => stripslashes( $sub_node->title ) , 'parent' => $main_node->id , 'href' => $sub_node->href , 'group' => false , 'new' => false ); ?>
59
+
60
+ <?php endif; ?>
61
+
62
+ <?php endforeach; ?>
63
+
64
+ <?php endif; ?>
65
+
66
+ <?php $menu_widget = array( 'id' => $main_node->id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => false , 'new' => false , 'subnode' => $pnsn ); ?>
67
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
68
+
69
+ <?php endforeach; ?>
70
+
71
+ <?php else : ?>
72
+
73
+ <?php if( !empty( $Data["right"]["main"] ) ) : ?>
74
+
75
+ <?php foreach( $Data["right"]["main"] as $main_node) : ?>
76
+
77
+ <?php $pnsn = array(); ?>
78
+ <?php if( !empty( $Data["right"]["sub"] ) ) : ?>
79
+
80
+ <?php foreach( $Data["right"]["sub"] as $sub_node) : ?>
81
+
82
+ <?php if( $main_node["id"] == $sub_node["parent"] ) : ?>
83
+
84
+ <?php $pnsn[] = array( 'id' => $sub_node["id"] , 'title' => stripslashes( $sub_node["title"] ) , 'parent' => $main_node["id"] , 'href' => $sub_node["href"] , 'group' => false , 'new' => false ); ?>
85
+
86
+ <?php endif; ?>
87
+
88
+ <?php endforeach; ?>
89
+
90
+ <?php endif; ?>
91
+
92
+ <?php $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => false , 'new' => false , 'subnode' => $pnsn ); ?>
93
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
94
+
95
+ <?php endforeach; ?>
96
+
97
+ <?php endif; ?>
98
+
99
+ <?php endif; ?>
100
+
101
+ </div>
102
+ </div>
103
  </div>
104
  </div>
105
 
106
  <div id="postbox-container-2" class="postbox-container">
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' , $this->ltd ); ?></span></h3>
111
+ <div class="inside">
112
+ <?php if( empty( $Data ) ) : ?>
113
+
114
+ <?php foreach( $AllDefaultNodes["left"]["main"] as $main_node) : ?>
115
+
116
+ <?php $pnsn = array(); ?>
117
+ <?php if( !empty( $AllDefaultNodes["left"]["sub"] ) ) : ?>
118
+
119
+ <?php foreach( $AllDefaultNodes["left"]["sub"] as $sub_node) : ?>
120
+
121
+ <?php if( $main_node->id == $sub_node->parent ) : ?>
122
+
123
+ <?php $pnsn[] = array( 'id' => $sub_node->id , 'title' => stripslashes( $sub_node->title ) , 'parent' => $main_node->id , 'href' => $sub_node->href , 'group' => false , 'new' => false ); ?>
124
+
125
+ <?php endif; ?>
126
+
127
+ <?php endforeach; ?>
128
+
129
+ <?php endif; ?>
130
+
131
+ <?php $menu_widget = array( 'id' => $main_node->id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => false , 'new' => false , 'subnode' => $pnsn ); ?>
132
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
133
+
134
+ <?php endforeach; ?>
135
+
136
+ <?php else : ?>
137
+
138
+ <?php if( !empty( $Data["left"]["main"] ) ) : ?>
139
+
140
+ <?php foreach( $Data["left"]["main"] as $main_node) : ?>
141
+
142
+ <?php $pnsn = array(); ?>
143
+ <?php if( !empty( $Data["left"]["sub"] ) ) : ?>
144
+
145
+ <?php foreach( $Data["left"]["sub"] as $sub_node) : ?>
146
+
147
+ <?php if( $main_node["id"] == $sub_node["parent"] ) : ?>
148
+
149
+ <?php $pnsn[] = array( 'id' => $sub_node["id"] , 'title' => stripslashes( $sub_node["title"] ) , 'parent' => $main_node["id"] , 'href' => $sub_node["href"] , 'group' => false , 'new' => false ); ?>
150
+
151
+ <?php endif; ?>
152
+
153
+ <?php endforeach; ?>
154
+
155
+ <?php endif; ?>
156
+
157
+ <?php $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => false , 'new' => false , 'subnode' => $pnsn ); ?>
158
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
159
+
160
+ <?php endforeach; ?>
161
+
162
+ <?php endif; ?>
163
+
164
+ <?php endif; ?>
165
+ </div>
166
+ </div>
167
  </div>
168
  </div>
169
 
170
  <br class="clear">
171
+
172
  </div>
173
+
174
  </div>
175
 
176
  <div id="can_menus" class="metabox-holder columns-1">
181
 
182
  <h4><?php _e( 'Custom' ); ?> <?php _e( 'Menus' ); ?></h4>
183
  <?php $menu_widget = array( 'id' => "custom_node" , 'title' => "" , 'parent' => '' , 'href' => "" , 'group' => false , 'new' => true , 'subnode' => false ); ?>
184
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
185
  <div class="clear"></div>
186
 
187
  <h4><?php _e( 'Left' ); ?> <?php _e( 'Menus' ); ?></h4>
190
 
191
  <p class="description"><?php echo $node_id; ?></p>
192
  <?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
193
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
194
 
195
+ <?php foreach( $AllDefaultNodes["left"]["sub"] as $child_node_id => $child_node ) : ?>
196
 
197
+ <?php if( $child_node->parent == $node_id ) : ?>
198
 
199
+ <?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
200
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
201
 
202
+ <?php endif; ?>
203
 
204
+ <?php endforeach; ?>
205
 
206
+ <div class="clear"></div>
207
 
208
  <?php endforeach; ?>
209
 
215
 
216
  <p class="description"><?php echo $node_id; ?></p>
217
  <?php $menu_widget = array( 'id' => $node->id , 'title' => $node->title , 'parent' => '' , 'href' => $node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
218
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
219
 
220
  <?php foreach( $AllDefaultNodes["right"]["sub"] as $child_node_id => $child_node ) : ?>
221
 
222
  <?php if( $child_node->parent == $node_id ) : ?>
223
 
224
  <?php $menu_widget = array( 'id' => $child_node->id , 'title' => $child_node->title , 'parent' => '' , 'href' => $child_node->href , 'group' => false , 'new' => true , 'subnode' => false ); ?>
225
+ <?php $this->admin_bar_menu_widget( $menu_widget ); ?>
226
 
227
  <?php endif; ?>
228
 
263
  </style>
264
 
265
  <script type="text/javascript">
266
+
267
+ var wauc_widget_each, wauc_menu_sortable;
268
+
269
  jQuery(document).ready(function($) {
270
 
271
  var $Form = $("#wauc_setting_admin_bar_menu");
280
  zIndex: 5,
281
  containment: 'document',
282
  stop: function(e,ui) {
283
+ wauc_widget_each();
284
+ wauc_menu_sortable();
285
  }
286
  });
287
 
316
  return false;
317
  });
318
 
319
+ wauc_menu_sortable = function menu_sortable() {
320
 
321
  $('#wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside, #wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside .widget .widget-inside .submenu').sortable({
322
  placeholder: "widget-placeholder",
334
  if ( ui.item.hasClass('deleting') ) {
335
  ui.item.remove();
336
  }
337
+ wauc_widget_each();
338
  },
339
  });
340
 
341
  }
342
+ wauc_menu_sortable();
 
 
 
343
 
344
+ wauc_widget_each = function widget_each() {
345
  var $Count = 0;
346
  $('#wauc_setting_admin_bar_menu #poststuff #post-body .postbox-container .postbox .inside .widget').each(function() {
347
  var $InputId = $(this).children(".widget-inside").children(".settings").children(".description").children(".idtext");
390
  $Count++;
391
  });
392
  }
393
+ wauc_widget_each();
394
 
395
  });
396
  </script>
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->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
  ?>
18
 
@@ -29,16 +29,153 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
29
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
30
 
31
  <div id="poststuff">
 
32
  <div id="post-body" class="metabox-holder columns-1">
33
 
34
  <div id="postbox-container-1" class="postbox-container">
35
  <div id="admin_general">
36
- <?php echo $this->set_setting_admin_general( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  </div>
38
  </div>
39
 
40
  <br class="clear">
 
41
  </div>
 
42
  </div>
43
 
44
  <p class="submit">
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
  wp_enqueue_style('thickbox');
15
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
 
17
  ?>
18
 
29
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
30
 
31
  <div id="poststuff">
32
+
33
  <div id="post-body" class="metabox-holder columns-1">
34
 
35
  <div id="postbox-container-1" class="postbox-container">
36
  <div id="admin_general">
37
+ <div class="postbox">
38
+ <div class="handlediv" title="Click to toggle"><br></div>
39
+ <h3 class="hndle"><span><?php echo _e( 'Notifications' , $this->ltd ); ?></span></h3>
40
+ <div class="inside">
41
+ <table class="form-table">
42
+ <tbody>
43
+ <tr>
44
+ <th>
45
+ <label><?php _e( 'WordPress core update notice' , $this->ltd ); ?></label>
46
+ </th>
47
+ <td>
48
+ <?php $field = 'notice_update_core'; ?>
49
+ <?php $Checked = ''; ?>
50
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
51
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
52
+ </td>
53
+ </tr>
54
+ <tr>
55
+ <th>
56
+ <label><?php _e( 'Plugin update notice' , $this->ltd ); ?></label>
57
+ </th>
58
+ <td>
59
+ <?php $field = 'notice_update_plugin'; ?>
60
+ <?php $Checked = ''; ?>
61
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
62
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
63
+ </td>
64
+ </tr>
65
+ <tr>
66
+ <th>
67
+ <label><?php _e( 'Theme update notice' , $this->ltd ); ?></label>
68
+ </th>
69
+ <td>
70
+ <?php $field = 'notice_update_theme'; ?>
71
+ <?php $Checked = ''; ?>
72
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
73
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Not notified' , $this->ltd ); ?></label>
74
+ </td>
75
+ </tr>
76
+ </tbody>
77
+ </table>
78
+ </div>
79
+ </div>
80
+
81
+ <div class="postbox">
82
+ <div class="handlediv" title="Click to toggle"><br></div>
83
+ <h3 class="hndle"><span><?php echo _e( 'Screen Options and Help Tab' , $this->ltd ); ?></span></h3>
84
+ <div class="inside">
85
+ <table class="form-table">
86
+ <tbody>
87
+ <tr>
88
+ <th>
89
+ <label><?php _e( 'Screen Options' ); ?></label>
90
+ </th>
91
+ <td>
92
+ <?php $field = 'screen_option_tab'; ?>
93
+ <?php $Checked = ''; ?>
94
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
95
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
96
+ </td>
97
+ </tr>
98
+ <tr>
99
+ <th>
100
+ <label><?php _e( 'Help' ); ?></label>
101
+ </th>
102
+ <td>
103
+ <?php $field = 'help_tab'; ?>
104
+ <?php $Checked = ''; ?>
105
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
106
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
107
+ </td>
108
+ </tr>
109
+ </tbody>
110
+ </table>
111
+ </div>
112
+ </div>
113
+
114
+ <div class="postbox">
115
+ <div class="handlediv" title="Click to toggle"><br></div>
116
+ <h3 class="hndle"><span><?php echo _e( 'Footer' ); ?></span></h3>
117
+ <div class="inside">
118
+ <table class="form-table">
119
+ <tbody>
120
+ <tr>
121
+ <th>
122
+ <label><?php _e( 'Footer text' , $this->ltd ); ?></label>
123
+ </th>
124
+ <td>
125
+ <?php $field = 'footer_text'; ?>
126
+ <?php $Val = ''; ?>
127
+ <?php if( !empty( $Data[$field] ) ) : $Val = esc_html( stripslashes( $Data[$field] ) ); endif; ?>
128
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="large-text" />
129
+ <p class="description"><?php _e( 'Default' ); ?>: <?php _e( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ); ?></p>
130
+ <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>
131
+ </td>
132
+ </tr>
133
+ </tbody>
134
+ </table>
135
+ </div>
136
+ </div>
137
+
138
+ <div class="postbox">
139
+ <div class="handlediv" title="Click to toggle"><br></div>
140
+ <h3 class="hndle"><span><?php _e( 'General' ); ?></span></h3>
141
+ <div class="inside">
142
+ <table class="form-table">
143
+ <tbody>
144
+ <?php $field = 'css'; ?>
145
+ <tr>
146
+ <th>
147
+ <label><?php _e( 'CSS file to load' , $this->ltd ); ?></label>
148
+ </th>
149
+ <td>
150
+ <?php $Val = ''; ?>
151
+ <?php if( !empty( $Data[$field] ) ) : $Val = strip_tags( $Data[$field] ); endif; ?>
152
+ <input type="text" name="data[<?php echo $field; ?>]" value="<?php echo $Val; ?>" class="regular-text">
153
+ <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>
154
+ </td>
155
+ </tr>
156
+
157
+ <?php $field = 'title_tag'; ?>
158
+ <tr>
159
+ <th>
160
+ <label><?php _e( 'Title tag for Admin screen' , $this->ltd ); ?></label>
161
+ </th>
162
+ <td>
163
+ <?php $Checked = ''; ?>
164
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
165
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Remove "Wordpress" from the title tag of the Admin screen' , $this->ltd ); ?></label>
166
+ </td>
167
+ </tr>
168
+ </tbody>
169
+ </table>
170
+ </div>
171
+ </div>
172
  </div>
173
  </div>
174
 
175
  <br class="clear">
176
+
177
  </div>
178
+
179
  </div>
180
 
181
  <p class="submit">
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->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
 
@@ -28,16 +28,63 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
 
31
  <div id="post-body" class="metabox-holder columns-1">
32
 
33
  <div id="postbox-container-1" class="postbox-container">
 
34
  <div id="appearance_menus">
35
- <?php echo $this->set_setting_appearance_menus( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  </div>
37
  </div>
38
 
39
  <br class="clear">
 
40
  </div>
 
41
  </div>
42
 
43
  <p class="submit">
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
 
16
  ?>
17
 
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
31
+
32
  <div id="post-body" class="metabox-holder columns-1">
33
 
34
  <div id="postbox-container-1" class="postbox-container">
35
+
36
  <div id="appearance_menus">
37
+ <div class="postbox">
38
+ <h3 class="hndle"><span><?php _e( 'Menus' ); ?></span></h3>
39
+ <div class="inside">
40
+ <table class="form-table">
41
+ <tbody>
42
+ <?php $field = 'add_new_menu'; ?>
43
+ <tr>
44
+ <th>
45
+ <label><?php _e( 'Add a new menu' , $this->ltd ); ?></label>
46
+ </th>
47
+ <td>
48
+ <?php $Checked = ''; ?>
49
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
50
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
51
+ <p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
52
+ <?php if( version_compare( $GLOBALS['wp_version'], '3.6', '>=' ) ) : ?>
53
+ <p><img src="<?php echo $this->Url; ?>images/3.6/appearance_menus_add_new_menu.png" /></p>
54
+ <p><img src="<?php echo $this->Url; ?>images/3.6/appearance_menus_add_new_menu_of_location.png" /></p>
55
+ <?php else: ?>
56
+ <p><img src="<?php echo $this->Url; ?>images/appearance_menus_add_new_menu.png" /></p>
57
+ <?php endif; ?>
58
+ </td>
59
+ </tr>
60
+ <?php $field = 'delete_menu'; ?>
61
+ <tr>
62
+ <th>
63
+ <label><?php _e( 'Delete Menu' ); ?></label>
64
+ </th>
65
+ <td>
66
+ <?php $Checked = ''; ?>
67
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
68
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
69
+ <p class="description"><?php _e( 'This is useful when you want to use only the menus have been created.' , $this->ltd ); ?></p>
70
+ <?php if( version_compare( $GLOBALS['wp_version'], '3.6', '>=' ) ) : ?>
71
+ <p><img src="<?php echo $this->Url; ?>images/3.6/appearance_menus_delete_menu.png" /></p>
72
+ <?php else: ?>
73
+ <p><img src="<?php echo $this->Url; ?>images/appearance_menus_delete_menu.png" /></p>
74
+ <?php endif; ?>
75
+ </td>
76
+ </tr>
77
+ </tbody>
78
+ </table>
79
+ </div>
80
+ </div>
81
  </div>
82
  </div>
83
 
84
  <br class="clear">
85
+
86
  </div>
87
+
88
  </div>
89
 
90
  <p class="submit">
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->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
 
@@ -28,16 +28,149 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
 
31
  <div id="post-body" class="metabox-holder columns-1">
32
 
33
  <div id="postbox-container-1" class="postbox-container">
34
  <div id="dashboard">
35
- <?php echo $this->set_setting_dashboard( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  </div>
37
  </div>
38
 
39
  <br class="clear">
 
40
  </div>
 
41
  </div>
42
 
43
  <p class="submit">
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
 
16
  ?>
17
 
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
31
+
32
  <div id="post-body" class="metabox-holder columns-1">
33
 
34
  <div id="postbox-container-1" class="postbox-container">
35
  <div id="dashboard">
36
+ <div class="postbox">
37
+ <div class="handlediv" title="Click to toggle"><br></div>
38
+ <h3 class="hndle"><span><?php _e( 'Meta boxes' , $this->ltd ); ?></span></h3>
39
+ <div class="inside">
40
+ <table class="form-table">
41
+ <tbody>
42
+ <?php $field = 'show_welcome_panel'; ?>
43
+ <tr>
44
+ <th>
45
+ <label><?php _e( 'Welcome Panel' , $this->ltd ); ?></label>
46
+ </th>
47
+ <td>
48
+ <?php $Checked = ''; ?>
49
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
50
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
51
+ </td>
52
+ </tr>
53
+ <?php $field = 'dashboard_right_now'; ?>
54
+ <tr>
55
+ <th>
56
+ <label><?php _e( 'Right Now' ); ?></label>
57
+ </th>
58
+ <td>
59
+ <?php $Checked = ''; ?>
60
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
61
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
62
+ </td>
63
+ </tr>
64
+ <?php $field = 'dashboard_recent_comments'; ?>
65
+ <tr>
66
+ <th>
67
+ <label><?php _e( 'Recent Comments' ); ?></label>
68
+ </th>
69
+ <td>
70
+ <?php $Checked = ''; ?>
71
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
72
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
73
+ </td>
74
+ </tr>
75
+ <?php $field = 'dashboard_incoming_links'; ?>
76
+ <tr>
77
+ <th>
78
+ <label><?php _e( 'Incoming Links' ); ?></label>
79
+ </th>
80
+ <td>
81
+ <?php $Checked = ''; ?>
82
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
83
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
84
+ </td>
85
+ </tr>
86
+ <?php $field = 'dashboard_plugins'; ?>
87
+ <tr>
88
+ <th>
89
+ <label><?php _e( 'Plugins' ); ?></label>
90
+ </th>
91
+ <td>
92
+ <?php $Checked = ''; ?>
93
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
94
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
95
+ </td>
96
+ </tr>
97
+ <?php $field = 'dashboard_quick_press'; ?>
98
+ <tr>
99
+ <th>
100
+ <label><?php _e( 'QuickPress' ); ?></label>
101
+ </th>
102
+ <td>
103
+ <?php $Checked = ''; ?>
104
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
105
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
106
+ </td>
107
+ </tr>
108
+ <?php $field = 'dashboard_recent_drafts'; ?>
109
+ <tr>
110
+ <th>
111
+ <label><?php _e( 'Recent Drafts' ); ?></label>
112
+ </th>
113
+ <td>
114
+ <?php $Checked = ''; ?>
115
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
116
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
117
+ </td>
118
+ </tr>
119
+ <?php $field = 'dashboard_primary'; ?>
120
+ <tr>
121
+ <th>
122
+ <label><?php _e( 'WordPress Blog' ); ?></label>
123
+ </th>
124
+ <td>
125
+ <?php $Checked = ''; ?>
126
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
127
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
128
+ </td>
129
+ </tr>
130
+ <?php $field = 'dashboard_secondary'; ?>
131
+ <tr>
132
+ <th>
133
+ <label><?php _e( 'Other WordPress News' ); ?></label>
134
+ </th>
135
+ <td>
136
+ <?php $Checked = ''; ?>
137
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
138
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
139
+ </td>
140
+ </tr>
141
+ </tbody>
142
+ </table>
143
+ </div>
144
+ </div>
145
+
146
+ <div class="postbox">
147
+ <div class="handlediv" title="Click to toggle"><br></div>
148
+ <h3 class="hndle"><span><?php _e( 'Other' , $this->ltd ); ?></span></h3>
149
+ <div class="inside">
150
+ <table class="form-table">
151
+ <tbody>
152
+ <?php $field = 'metabox_move'; ?>
153
+ <tr>
154
+ <th>
155
+ <label><?php _e( 'Meta box movement restriction' , $this->ltd ); ?></label>
156
+ </th>
157
+ <td>
158
+ <?php $Checked = ''; ?>
159
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
160
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e( "Lock meta box positions" , $this->ltd ); ?></label>
161
+ </td>
162
+ </tr>
163
+ </tbody>
164
+ </table>
165
+ </div>
166
+ </div>
167
  </div>
168
  </div>
169
 
170
  <br class="clear">
171
+
172
  </div>
173
+
174
  </div>
175
 
176
  <p class="submit">
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->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
17
- wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
18
 
19
  ?>
20
  <div class="wrap">
@@ -30,6 +30,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
30
  <div id="post-body" class="metabox-holder columns-2">
31
 
32
  <div id="postbox-container-1" class="postbox-container">
 
33
  <div id="about_plugin">
34
 
35
  <div class="stuffbox" id="donationbox">
@@ -90,11 +91,15 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
90
  <p>&nbsp;</p>
91
  </div>
92
  </div>
 
93
  </div>
 
94
  </div>
95
-
96
  <div id="postbox-container-2" class="postbox-container">
 
97
  <div id="user_role">
 
98
  <form id="wauc_setting_default" class="wauc_form" method="post" action="">
99
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
100
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
@@ -128,7 +133,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
128
  <p>&nbsp;</p>
129
 
130
  </form>
131
-
132
  <form id="donation_form" class="wauc_form" method="post" action="">
133
  <h3><?php _e( 'If you have already donated to.' , $this->ltd_p ); ?></h3>
134
  <p><?php _e( 'Please enter the \'Donation delete key\' that have been described in the \'Line Break First and End download page\'.' , $this->ltd_p ); ?></p>
@@ -145,7 +150,8 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
145
  <h3 style="background: #FFF2D0; border-color: #FFC426;"><span class="hndle"><?php _e( 'Have you want to customize?' , $this->ltd_p ); ?></span></h3>
146
  <div class="inside">
147
  <p style="float: right;">
148
- <img src="http://www.gravatar.com/avatar/7e05137c5a859aa987a809190b979ed4?s=46" width="46" /><br />
 
149
  <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>
150
  </p>
151
  <p><?php _e( 'I am good at Admin Screen Customize.' , $this->ltd_p ); ?></p>
@@ -157,10 +163,13 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
157
  </div>
158
 
159
  </div>
 
160
  </div>
161
-
162
  <br class="clear">
 
163
  </div>
 
164
  </div>
165
 
166
  </div>
13
 
14
  // include js css
15
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
16
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
17
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
18
 
19
  ?>
20
  <div class="wrap">
30
  <div id="post-body" class="metabox-holder columns-2">
31
 
32
  <div id="postbox-container-1" class="postbox-container">
33
+
34
  <div id="about_plugin">
35
 
36
  <div class="stuffbox" id="donationbox">
91
  <p>&nbsp;</p>
92
  </div>
93
  </div>
94
+
95
  </div>
96
+
97
  </div>
98
+
99
  <div id="postbox-container-2" class="postbox-container">
100
+
101
  <div id="user_role">
102
+
103
  <form id="wauc_setting_default" class="wauc_form" method="post" action="">
104
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
105
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
133
  <p>&nbsp;</p>
134
 
135
  </form>
136
+
137
  <form id="donation_form" class="wauc_form" method="post" action="">
138
  <h3><?php _e( 'If you have already donated to.' , $this->ltd_p ); ?></h3>
139
  <p><?php _e( 'Please enter the \'Donation delete key\' that have been described in the \'Line Break First and End download page\'.' , $this->ltd_p ); ?></p>
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 $schema = is_ssl() ? 'https://' : 'http://'; ?>
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>
163
  </div>
164
 
165
  </div>
166
+
167
  </div>
168
+
169
  <br class="clear">
170
+
171
  </div>
172
+
173
  </div>
174
 
175
  </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->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
  ?>
18
 
@@ -126,10 +126,13 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
126
  </div>
127
 
128
  </div>
 
129
  </div>
130
-
131
  <br class="clear">
 
132
  </div>
 
133
  </div>
134
 
135
  <p class="submit">
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' , 'thickbox' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
  wp_enqueue_style('thickbox');
15
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
 
17
  ?>
18
 
126
  </div>
127
 
128
  </div>
129
+
130
  </div>
131
+
132
  <br class="clear">
133
+
134
  </div>
135
+
136
  </div>
137
 
138
  <p class="submit">
inc/setting_post_add_edit.php CHANGED
@@ -10,8 +10,8 @@ $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
 
@@ -28,16 +28,40 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
 
31
  <div id="post-body" class="metabox-holder columns-1">
32
 
33
  <div id="postbox-container-1" class="postbox-container">
34
  <div id="post_add_edit">
35
- <?php echo $this->set_setting_post_add_edit( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  </div>
37
  </div>
38
 
39
  <br class="clear">
 
40
  </div>
 
41
  </div>
42
 
43
  <p class="submit">
10
 
11
  // include js css
12
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
13
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
14
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
15
 
16
  ?>
17
 
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
31
+
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' ); ?> &amp; <?php _e( 'Edit Post' ); ?></span></h3>
38
+ <div class="inside">
39
+ <table class="form-table">
40
+ <tbody>
41
+ <?php $field = 'default_permalink'; ?>
42
+ <tr>
43
+ <th>
44
+ <label><?php _e( 'Change Permalinks' ); ?></label>
45
+ </th>
46
+ <td>
47
+ <?php $Checked = ''; ?>
48
+ <?php if( !empty( $Data[$field] ) ) : $Checked = 'checked="checked"'; endif; ?>
49
+ <label><input type="checkbox" name="data[<?php echo $field; ?>]" value="1" <?php echo $Checked; ?> /> <?php _e ( 'Hide' ); ?></label>
50
+ <p class="description"><?php _e( 'Only appears when you have settings to the default permalink.' , $this->ltd ); ?></p>
51
+ <p><img src="<?php echo $this->Url; ?>images/post_add_edit_screen__edit_ppermalink.png" /></p>
52
+ </td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ </div>
57
+ </div>
58
  </div>
59
  </div>
60
 
61
  <br class="clear">
62
+
63
  </div>
64
+
65
  </div>
66
 
67
  <p class="submit">
inc/setting_removemtabox.php CHANGED
@@ -7,11 +7,12 @@ if( !empty( $_POST["update"] ) ) {
7
  }
8
 
9
  $Data = $this->get_data( 'removemetabox' );
 
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
 
@@ -28,22 +29,109 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
 
30
  <div id="poststuff">
 
31
  <div id="post-body" class="metabox-holder columns-1">
32
 
33
  <div id="postbox-container-1" class="postbox-container">
34
  <div id="metabox_post">
35
- <?php echo $this->set_setting_removemetabox( 'post' , $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  </div>
37
  </div>
38
 
39
  <div id="postbox-container-2" class="postbox-container">
40
  <div id="metabox_page">
41
- <?php echo $this->set_setting_removemetabox( 'page' , $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  </div>
43
  </div>
44
 
45
  <br class="clear">
 
46
  </div>
 
47
  </div>
48
 
49
  <p class="submit">
7
  }
8
 
9
  $Data = $this->get_data( 'removemetabox' );
10
+ $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 . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
15
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
 
17
  ?>
18
 
29
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
30
 
31
  <div id="poststuff">
32
+
33
  <div id="post-body" class="metabox-holder columns-1">
34
 
35
  <div id="postbox-container-1" class="postbox-container">
36
  <div id="metabox_post">
37
+ <div class="postbox">
38
+ <div class="handlediv" title="Click to toggle"><br></div>
39
+ <h3 class="hndle"><span><?php _e( 'Post' ); ?></span></h3>
40
+ <div class="inside">
41
+
42
+ <?php if( empty( $Metaboxes["metaboxes"]["post"] ) ) : ?>
43
+
44
+ <p><?php _e( 'Could not read the meta box.' , $this->ltd ); ?></p>
45
+ <p><?php echo sprintf( __( 'Meta boxes will be loaded automatically when you Edit %s.' , $this->ltd ) , __( 'Post' ) ); ?></p>
46
+
47
+ <?php else: ?>
48
+
49
+ <table class="form-table">
50
+ <tbody>
51
+ <?php foreach( $Metaboxes["metaboxes"]["post"] as $context => $meta_box ) : ?>
52
+ <?php foreach( $meta_box as $priority => $box ) : ?>
53
+ <?php foreach( $box as $metabox_id => $metabox_title ) : ?>
54
+ <?php if( $metabox_id != 'submitdiv' ) : ?>
55
+ <tr>
56
+ <th><?php echo $metabox_title; ?></th>
57
+ <td>
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
+
82
+
83
+ <?php endif; ?>
84
+ </div>
85
+ </div>
86
  </div>
87
  </div>
88
 
89
  <div id="postbox-container-2" class="postbox-container">
90
  <div id="metabox_page">
91
+ <div class="postbox">
92
+ <div class="handlediv" title="Click to toggle"><br></div>
93
+ <h3 class="hndle"><span><?php _e( 'Page' ); ?></span></h3>
94
+ <div class="inside">
95
+
96
+ <?php if( empty( $Metaboxes["metaboxes"]["page"] ) ) : ?>
97
+
98
+ <p><?php _e( 'Could not read the meta box.' , $this->ltd ); ?></p>
99
+ <p><?php echo sprintf( __( 'Meta boxes will be loaded automatically when you Edit %s.' , $this->ltd ) , __( 'Page' ) ); ?></p>
100
+
101
+ <?php else: ?>
102
+
103
+ <table class="form-table">
104
+ <tbody>
105
+ <?php foreach( $Metaboxes["metaboxes"]["page"] as $context => $meta_box ) : ?>
106
+ <?php foreach( $meta_box as $priority => $box ) : ?>
107
+ <?php foreach( $box as $metabox_id => $metabox_title ) : ?>
108
+ <?php if( $metabox_id != 'submitdiv' ) : ?>
109
+ <tr>
110
+ <th><?php echo $metabox_title; ?></th>
111
+ <td>
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; ?>
118
+ <?php endforeach; ?>
119
+ <?php endforeach; ?>
120
+ <?php endforeach; ?>
121
+ </tbody>
122
+ </table>
123
+
124
+ <?php endif; ?>
125
+
126
+ </div>
127
+ </div>
128
  </div>
129
  </div>
130
 
131
  <br class="clear">
132
+
133
  </div>
134
+
135
  </div>
136
 
137
  <p class="submit">
inc/setting_sidemenu.php CHANGED
@@ -1,19 +1,21 @@
1
  <?php
2
 
 
 
3
  if( !empty( $_POST["update"] ) ) {
4
  $this->update_sidemenu();
5
  } elseif( !empty( $_POST["reset"] ) ) {
6
  $this->update_reset( 'sidemenu' );
7
  }
8
 
 
9
  $Data = $this->get_data( 'sidemenu' );
10
- $Menus = $this->get_data( 'regist_sidemenu' );
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->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
  ?>
19
 
@@ -33,9 +35,11 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
33
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
34
 
35
  <div id="poststuff">
 
36
  <div id="post-body" class="metabox-holder columns-2">
37
 
38
  <div id="postbox-container-1" class="postbox-container">
 
39
  <div id="can_menus">
40
 
41
  <div class="postbox">
@@ -44,10 +48,10 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
44
 
45
  <p class="description"><?php _e( 'Sepalator' , $this->ltd ); ?></p>
46
  <?php $menu_widget = array( 'title' => '-' , 'slug' => 'separator' , 'parent_slug' => '' , 'new' => true , 'cap' => 'read' ); ?>
47
- <?php echo $this->sidebar_menu_widget( $menu_widget ); ?>
48
  <div class="clear"></div>
49
 
50
- <?php foreach($Menus["menu"] as $mm) : ?>
51
 
52
  <?php if( !empty( $mm[0] ) ) : ?>
53
 
@@ -61,7 +65,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
61
  <?php endif; ?>
62
  <p class="description"><?php echo $menu_title; ?></p>
63
 
64
- <?php foreach($Menus["submenu"] as $parent_slug => $sub) : ?>
65
 
66
  <?php foreach($sub as $sm) : ?>
67
 
@@ -77,7 +81,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
77
  <?php $menu_title .= ' [update_plugins]'; ?>
78
  <?php endif; ?>
79
  <?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'cap' => $sm[1] , 'submenu' => '' ); ?>
80
- <?php echo $this->sidebar_menu_widget( $menu_widget ); ?>
81
  <?php endif; ?>
82
 
83
  <?php endforeach; ?>
@@ -94,21 +98,127 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
94
 
95
  </div>
96
 
97
-
98
  </div>
 
99
  </div>
100
 
101
  <div id="postbox-container-2" class="postbox-container">
 
102
  <div id="setting_menus">
103
 
104
- <?php echo $this->set_setting_sidemenu( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
  </div>
107
  </div>
108
 
109
  <br class="clear">
110
-
111
  </div>
 
112
  </div>
113
 
114
  <p class="submit">
@@ -127,6 +237,9 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
127
  <?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
128
 
129
  <script type="text/javascript">
 
 
 
130
  jQuery(document).ready(function($) {
131
 
132
  var $Form = $("#wauc_setting_sidemenu");
@@ -141,8 +254,8 @@ jQuery(document).ready(function($) {
141
  zIndex: 5,
142
  containment: 'document',
143
  stop: function(e,ui) {
144
- widget_each();
145
- menu_sortable();
146
  }
147
  });
148
 
@@ -177,7 +290,7 @@ jQuery(document).ready(function($) {
177
  return false;
178
  });
179
 
180
- var menu_sortable = function menu_sortable() {
181
 
182
  $('#wauc_setting_sidemenu #poststuff #post-body #postbox-container-2 #setting_menus .postbox .inside, #wauc_setting_sidemenu #poststuff #post-body #postbox-container-2 #setting_menus .postbox .inside .widget .widget-inside .submenu').sortable({
183
  placeholder: "widget-placeholder",
@@ -195,17 +308,14 @@ jQuery(document).ready(function($) {
195
  if ( ui.item.hasClass('deleting') ) {
196
  ui.item.remove();
197
  }
198
- widget_each();
199
  },
200
  });
201
 
202
  }
203
- $('#poststuff #post-body').mouseenter(function() {
204
- menu_sortable();
205
- });
206
- menu_sortable();
207
 
208
- function widget_each() {
209
  var $Count = 0;
210
  $('#wauc_setting_sidemenu #setting_menus .postbox .inside .widget').each(function() {
211
  var $InputSlug = $(this).children(".widget-inside").children(".settings").children(".description").children(".slugtext");
@@ -229,7 +339,7 @@ jQuery(document).ready(function($) {
229
  $Count++;
230
  });
231
  }
232
- widget_each();
233
 
234
  $('#wauc_setting_sidemenu #setting_menus .sidebar_setting_delete a').live('click', function() {
235
  $('#wauc_setting_sidemenu #setting_menus .postbox .inside').html('');
1
  <?php
2
 
3
+ global $menu, $submenu;
4
+
5
  if( !empty( $_POST["update"] ) ) {
6
  $this->update_sidemenu();
7
  } elseif( !empty( $_POST["reset"] ) ) {
8
  $this->update_reset( 'sidemenu' );
9
  }
10
 
11
+ $this->get_user_role();
12
  $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 . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
17
  wp_enqueue_style( 'thickbox' );
18
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
19
 
20
  ?>
21
 
35
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
36
 
37
  <div id="poststuff">
38
+
39
  <div id="post-body" class="metabox-holder columns-2">
40
 
41
  <div id="postbox-container-1" class="postbox-container">
42
+
43
  <div id="can_menus">
44
 
45
  <div class="postbox">
48
 
49
  <p class="description"><?php _e( 'Sepalator' , $this->ltd ); ?></p>
50
  <?php $menu_widget = array( 'title' => '-' , 'slug' => 'separator' , 'parent_slug' => '' , 'new' => true , 'cap' => 'read' ); ?>
51
+ <?php $this->sidebar_menu_widget( $menu_widget ); ?>
52
  <div class="clear"></div>
53
 
54
+ <?php foreach($this->Menu as $mm) : ?>
55
 
56
  <?php if( !empty( $mm[0] ) ) : ?>
57
 
65
  <?php endif; ?>
66
  <p class="description"><?php echo $menu_title; ?></p>
67
 
68
+ <?php foreach($this->SubMenu as $parent_slug => $sub) : ?>
69
 
70
  <?php foreach($sub as $sm) : ?>
71
 
81
  <?php $menu_title .= ' [update_plugins]'; ?>
82
  <?php endif; ?>
83
  <?php $menu_widget = array( 'title' => $menu_title , 'slug' => $sm[2] , 'parent_slug' => '' , 'new' => true , 'cap' => $sm[1] , 'submenu' => '' ); ?>
84
+ <?php $this->sidebar_menu_widget( $menu_widget ); ?>
85
  <?php endif; ?>
86
 
87
  <?php endforeach; ?>
98
 
99
  </div>
100
 
 
101
  </div>
102
+
103
  </div>
104
 
105
  <div id="postbox-container-2" class="postbox-container">
106
+
107
  <div id="setting_menus">
108
 
109
+ <div class="postbox">
110
+ <h3 class="hndle">
111
+ <span><?php _e( 'Current menu' , $this->ltd ); ?></span>
112
+ </h3>
113
+ <div class="inside">
114
+
115
+ <?php if( empty( $Data ) ) : ?>
116
+
117
+ <?php foreach($menu as $mm) : ?>
118
+
119
+ <?php if( isset( $mm[2] ) && strstr( $mm[2] , 'separator' ) ) : ?>
120
+
121
+ <?php $menu_title = '-'; ?>
122
+ <?php $mm[2] = 'separator'; ?>
123
+ <?php $mwsm = array(); ?>
124
+
125
+ <?php elseif( !empty( $mm[0] ) ) : ?>
126
+
127
+ <?php $menu_title = $mm[0]; ?>
128
+ <?php if( !empty( $mm[5] ) ) : ?>
129
+ <?php if( $mm[5] == 'menu-comments' ) : ?>
130
+ <?php $menu_title = __( 'Comments' ) . ' [comment_count]'; ?>
131
+ <?php elseif( $mm[5] == 'menu-appearance' ) : ?>
132
+ <?php $menu_title = __( 'Appearance' ) . ' [update_themes]'; ?>
133
+ <?php elseif( $mm[5] == 'menu-plugins' ) : ?>
134
+ <?php $menu_title = __( 'Plugins' ) . ' [update_plugins]'; ?>
135
+ <?php endif; ?>
136
+ <?php endif; ?>
137
+
138
+ <?php $mwsm = array(); ?>
139
+ <?php foreach($submenu as $parent_slug => $sub) : ?>
140
+ <?php foreach($sub as $sm) : ?>
141
+ <?php if( $mm[2] == $parent_slug ) : ?>
142
+ <?php $submenu_title = $sm[0]; ?>
143
+
144
+ <?php if( $sm[1] == 'update_core' ) : ?>
145
+ <?php $submenu_title = __( 'Update' ) . ' [update_total]'; ?>
146
+ <?php endif; ?>
147
+ <?php $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug , 'cap' => $sm[1] ); ?>
148
+ <?php endif; ?>
149
+ <?php endforeach; ?>
150
+ <?php endforeach; ?>
151
+
152
+ <?php endif; ?>
153
+
154
+ <?php $menu_widget = array( 'title' => $menu_title , 'slug' => $mm[2] , 'parent_slug' => '' , 'new' => false , 'cap' => $mm[1] , 'submenu' => $mwsm ); ?>
155
+ <?php $this->sidebar_menu_widget( $menu_widget ); ?>
156
+
157
+ <?php endforeach; ?>
158
+
159
+ <?php else: ?>
160
+
161
+ <?php if( !empty( $Data["main"] ) ) : ?>
162
+
163
+ <?php foreach($Data["main"] as $mm) : ?>
164
+
165
+ <?php if( !empty( $mm["title"] ) ) : ?>
166
+
167
+ <?php $mwsm = array(); ?>
168
+ <?php if( !empty( $Data["sub"] ) ) : ?>
169
+ <?php foreach($Data["sub"] as $sm) : ?>
170
+
171
+ <?php if( $mm["slug"] == $sm["parent_slug"] ) : ?>
172
+
173
+ <?php $cap = ""; ?>
174
+ <?php if( !empty( $submenu[$mm["slug"]] ) ) : ?>
175
+ <?php foreach( $submenu[$mm["slug"]] as $k => $tmp_sm ) : ?>
176
+ <?php if( $tmp_sm[2] == $sm["slug"] ) : ?>
177
+ <?php $cap = $tmp_sm[1]; ?>
178
+ <?php break; ?>
179
+ <?php endif; ?>
180
+ <?php endforeach; ?>
181
+ <?php endif; ?>
182
+
183
+ <?php $mwsm[] = array( 'title' => $sm["title"] , 'slug' => $sm["slug"] , 'parent_slug' => $sm["parent_slug"] , 'cap' => $cap ); ?>
184
+
185
+ <?php endif; ?>
186
+
187
+ <?php endforeach; ?>
188
+ <?php endif; ?>
189
+
190
+ <?php $cap = ""; ?>
191
+ <?php foreach( $menu as $tmp_m ) : ?>
192
+ <?php if( $tmp_m[2] == $mm["slug"] ) : ?>
193
+ <?php $cap = $tmp_m[1]; ?>
194
+ <?php break; ?>
195
+ <?php endif; ?>
196
+ <?php endforeach; ?>
197
+
198
+ <?php $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'cap' =>$cap , 'submenu' => $mwsm ); ?>
199
+ <?php $this->sidebar_menu_widget( $menu_widget ); ?>
200
+
201
+ <?php endif; ?>
202
+
203
+ <?php endforeach; ?>
204
+
205
+ <?php endif; ?>
206
+
207
+ <?php endif; ?>
208
+
209
+ </div>
210
+
211
+ </div>
212
+
213
+ <p class="sidebar_setting_delete"><a href="#"><?php _e( 'Delete all' ); ?></a></p>
214
 
215
  </div>
216
  </div>
217
 
218
  <br class="clear">
219
+
220
  </div>
221
+
222
  </div>
223
 
224
  <p class="submit">
237
  <?php require_once( dirname( __FILE__ ) . '/list_variables.php' ); ?>
238
 
239
  <script type="text/javascript">
240
+
241
+ var wauc_widget_each, wauc_menu_sortable;
242
+
243
  jQuery(document).ready(function($) {
244
 
245
  var $Form = $("#wauc_setting_sidemenu");
254
  zIndex: 5,
255
  containment: 'document',
256
  stop: function(e,ui) {
257
+ wauc_widget_each();
258
+ wauc_menu_sortable();
259
  }
260
  });
261
 
290
  return false;
291
  });
292
 
293
+ wauc_menu_sortable = function menu_sortable() {
294
 
295
  $('#wauc_setting_sidemenu #poststuff #post-body #postbox-container-2 #setting_menus .postbox .inside, #wauc_setting_sidemenu #poststuff #post-body #postbox-container-2 #setting_menus .postbox .inside .widget .widget-inside .submenu').sortable({
296
  placeholder: "widget-placeholder",
308
  if ( ui.item.hasClass('deleting') ) {
309
  ui.item.remove();
310
  }
311
+ wauc_widget_each();
312
  },
313
  });
314
 
315
  }
316
+ wauc_menu_sortable();
 
 
 
317
 
318
+ wauc_widget_each = function widget_each() {
319
  var $Count = 0;
320
  $('#wauc_setting_sidemenu #setting_menus .postbox .inside .widget').each(function() {
321
  var $InputSlug = $(this).children(".widget-inside").children(".settings").children(".description").children(".slugtext");
339
  $Count++;
340
  });
341
  }
342
+ wauc_widget_each();
343
 
344
  $('#wauc_setting_sidemenu #setting_menus .sidebar_setting_delete a').live('click', function() {
345
  $('#wauc_setting_sidemenu #setting_menus .postbox .inside').html('');
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->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
  ?>
18
 
@@ -34,6 +34,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
34
  <div id="postbox-container-1" class="postbox-container">
35
 
36
  <div id="meta_fields">
 
37
  <div class="postbox">
38
  <div class="handlediv" title="Click to toggle"><br></div>
39
  <h3 class="hndle"><span>Meta Fields</span></h3>
@@ -108,6 +109,7 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
108
  </table>
109
  </div>
110
  </div>
 
111
  </div>
112
 
113
  </div>
@@ -115,13 +117,44 @@ wp_enqueue_style( $this->PageSlug , $this->Dir . dirname( dirname( plugin_basena
115
  <div id="postbox-container-2" class="postbox-container">
116
 
117
  <div id="general">
118
- <?php echo $this->set_setting_site_general( $Data ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  </div>
120
 
121
  </div>
122
 
123
  <br class="clear">
 
124
  </div>
 
125
  </div>
126
 
127
  <p class="submit">
11
 
12
  // include js css
13
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
14
+ wp_enqueue_script( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.js', $ReadedJs , $this->Ver );
15
+ wp_enqueue_style( $this->PageSlug , $this->Url . dirname( dirname( plugin_basename( __FILE__ ) ) ) . '.css', array() , $this->Ver );
16
 
17
  ?>
18
 
34
  <div id="postbox-container-1" class="postbox-container">
35
 
36
  <div id="meta_fields">
37
+
38
  <div class="postbox">
39
  <div class="handlediv" title="Click to toggle"><br></div>
40
  <h3 class="hndle"><span>Meta Fields</span></h3>
109
  </table>
110
  </div>
111
  </div>
112
+
113
  </div>
114
 
115
  </div>
117
  <div id="postbox-container-2" class="postbox-container">
118
 
119
  <div id="general">
120
+ <div class="postbox">
121
+ <div class="handlediv" title="Click to toggle"><br></div>
122
+ <h3 class="hndle"><span><?php _e( 'General' ); ?></span></h3>
123
+ <div class="inside">
124
+ <table class="form-table">
125
+ <tbody>
126
+ <?php $field = 'admin_bar'; ?>
127
+ <tr>
128
+ <th>
129
+ <?php echo $field; ?>
130
+ </th>
131
+ <td>
132
+ <?php $arr = array( "hide" => __( 'Hide the Admin bar on the front end' , $this->ltd ) , "front" => __( 'Apply WP Admin UI Customize settings on the front end admin bar also' , $this->ltd ) ); ?>
133
+ <select name="data[<?php echo $field; ?>]">
134
+ <option value="">-</option>
135
+ <?php foreach( $arr as $key => $label ) : ?>
136
+ <?php $Selected = ''; ?>
137
+ <?php if( !empty( $Data[$field] ) ) : ?>
138
+ <?php if( $Data[$field] == $key ) : $Selected = 'selected="selected"'; endif; ?>
139
+ <?php if( $key == "hide" && $Data[$field] == "1" ) : $Selected = 'selected="selected"'; endif; ?>
140
+ <?php endif; ?>
141
+ <option value="<?php echo $key; ?>" <?php echo $Selected; ?>><?php echo $label; ?></option>
142
+ <?php endforeach; ?>
143
+ </select>
144
+ </td>
145
+ </tr>
146
+ </tbody>
147
+ </table>
148
+ </div>
149
+ </div>
150
  </div>
151
 
152
  </div>
153
 
154
  <br class="clear">
155
+
156
  </div>
157
+
158
  </div>
159
 
160
  <p class="submit">
languages/wauc-ja.mo CHANGED
Binary file
languages/wauc-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-07-27 11:17+0900\n"
6
- "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -214,6 +214,12 @@ msgstr "ショートコード一覧"
214
  msgid "Shortcode"
215
  msgstr "ショートコード"
216
 
 
 
 
 
 
 
217
  msgid "In your case."
218
  msgstr "これはあなたの場合です。"
219
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-08-03 10:51+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"
214
  msgid "Shortcode"
215
  msgstr "ショートコード"
216
 
217
+ msgid "Blog name of logged in."
218
+ msgstr "ログイン中のブログ名"
219
+
220
+ msgid "Blog URL of logged in."
221
+ msgstr "ログイン中のブログURL"
222
+
223
  msgid "In your case."
224
  msgstr "これはあなたの場合です。"
225
 
languages/wauc.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2013-07-27 11:12+0900\n"
6
- "Language-Team: \n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -116,7 +116,7 @@ msgid "Meta box movement restriction"
116
  msgstr ""
117
 
118
  msgid "Lock meta box positions"
119
- msgstr "メタボックスを移動させない"
120
 
121
  msgid "Admin Bar Menu"
122
  msgstr ""
@@ -214,6 +214,12 @@ msgstr ""
214
  msgid "Shortcode"
215
  msgstr ""
216
 
 
 
 
 
 
 
217
  msgid "In your case."
218
  msgstr ""
219
 
@@ -222,3 +228,4 @@ msgstr ""
222
 
223
  msgid "Applied user roles"
224
  msgstr ""
 
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-08-03 10:51+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"
116
  msgstr ""
117
 
118
  msgid "Lock meta box positions"
119
+ msgstr ""
120
 
121
  msgid "Admin Bar Menu"
122
  msgstr ""
214
  msgid "Shortcode"
215
  msgstr ""
216
 
217
+ msgid "Blog name of logged in."
218
+ msgstr ""
219
+
220
+ msgid "Blog URL of logged in."
221
+ msgstr ""
222
+
223
  msgid "In your case."
224
  msgstr ""
225
 
228
 
229
  msgid "Applied user roles"
230
  msgstr ""
231
+
languages/wauc_plugin-ja.mo CHANGED
Binary file
languages/wauc_plugin-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-07-27 11:17+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"
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-08-03 10:52+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"
languages/wauc_plugin.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-07-27 11:17+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"
2
  msgstr ""
3
  "Project-Id-Version: WP Admin UI Customize\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2013-08-03 10:52+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"
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=1_3_7.1
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.2
7
- Stable tag: 1.3.7.1
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.7.1 =
53
  * Fixed : Translate.
54
  * Fixed : Misspelling.
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
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.2
7
+ Stable tag: 1.3.8
8
  License: GPL2
9
 
10
  Customize the management screen UI.
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.
55
+ * Modified the HTML of some settings screen.
56
+
57
  = 1.3.7.1 =
58
  * Fixed : Translate.
59
  * Fixed : Misspelling.
wp-admin-ui-customize.css CHANGED
@@ -134,7 +134,7 @@
134
  height: auto;
135
  }
136
  #wauc_setting_admin_bar_menu .postbox .inside .widget .widget-top .widget-title h4 {
137
- line-height: 18px;
138
  }
139
  #wauc_setting_admin_bar_menu .postbox .inside .widget.wp-logo .widget-top .widget-title h4 .ab-icon,
140
  #wauc_setting_admin_bar_menu .postbox .inside .widget.updates .widget-top .widget-title h4 .ab-icon,
134
  height: auto;
135
  }
136
  #wauc_setting_admin_bar_menu .postbox .inside .widget .widget-top .widget-title h4 {
137
+ line-height: 20px;
138
  }
139
  #wauc_setting_admin_bar_menu .postbox .inside .widget.wp-logo .widget-top .widget-title h4 .ab-icon,
140
  #wauc_setting_admin_bar_menu .postbox .inside .widget.updates .widget-top .widget-title h4 .ab-icon,
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=1_3_7_1
6
- Version: 1.3.7.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_7_1
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -42,13 +42,17 @@ class WP_Admin_UI_Customize
42
  $Nonces,
43
  $UPFN,
44
  $DonateKey,
 
 
 
45
  $Msg;
46
 
47
 
48
  function __construct() {
49
- $this->Ver = '1.3.7.1';
50
  $this->Name = 'WP Admin UI Customize';
51
- $this->Dir = WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) . '/';
 
52
  $this->Site = 'http://wpadminuicustomize.com/';
53
  $this->AuthorUrl = 'http://gqevu6bsiz.chicappa.jp/';
54
  $this->ltd = 'wauc';
@@ -59,9 +63,7 @@ class WP_Admin_UI_Customize
59
  "admin_general" => $this->ltd . '_admin_general_setting',
60
  "dashboard" => $this->ltd . '_dashboard_setting',
61
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
62
- "regist_admin_bar" => $this->ltd . '_regist_admin_bar',
63
  "sidemenu" => $this->ltd . '_sidemenu_setting',
64
- "regist_sidemenu" => $this->ltd . '_regist_sidemenu',
65
  "removemetabox" => $this->ltd . '_removemetabox_setting',
66
  "regist_metabox" => $this->ltd . '_regist_metabox',
67
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
@@ -236,6 +238,19 @@ class WP_Admin_UI_Customize
236
  return $Data;
237
  }
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
 
240
 
241
  // Settingcheck
@@ -292,79 +307,22 @@ class WP_Admin_UI_Customize
292
 
293
  // SetList
294
  function sidemenu_default_load() {
295
- $UserRole = $this->current_user_role_group();
296
- if( $UserRole == 'administrator' ) {
297
-
298
- global $menu , $submenu;
299
- $GetData = $this->get_data( "regist_sidemenu" );
300
-
301
- $Update = array();
302
- $Update["UPFN"] = $this->UPFN;
303
-
304
- $Update["menu"] = $tmp_m = $menu;
305
- $Update["submenu"] = $tmp_sm = $submenu;
306
-
307
- if( !empty( $menu ) ) {
308
- if( !empty( $GetData["menu"] ) ) {
309
- foreach( $GetData["menu"] as $name => $v ) {
310
- if( !empty( $tmp_m[$name] ) ) {
311
- unset( $tmp_m[$name] );
312
- }
313
- }
314
- if( !empty( $GetData["submenu"] ) ) {
315
- foreach( $GetData["submenu"] as $name => $v ) {
316
- if( !empty( $tmp_sm[$name] ) ) {
317
- unset( $tmp_sm[$name] );
318
- }
319
- }
320
- }
321
- if( !empty( $tmp_m ) or !empty( $tmp_sm ) ) {
322
- update_option( $this->Record["regist_sidemenu"] , $Update );
323
- }
324
- } else {
325
- update_option( $this->Record["regist_sidemenu"] , $Update );
326
- }
327
- }
328
-
329
- }
330
 
 
 
331
  }
332
 
333
  // SetList
334
  function admin_bar_default_load( $wp_admin_bar ) {
335
- $UserRole = $this->current_user_role_group();
336
- if( $UserRole == 'administrator' ) {
337
- global $wp_admin_bar;
338
-
339
- $Admin_bar = $wp_admin_bar->get_nodes();
340
- $GetData = $this->get_data( "regist_admin_bar" );
341
-
342
- $Update = array();
343
- $Update["UPFN"] = $this->UPFN;
344
- $Update["admin_bar"] = $Admin_bar;
345
-
346
- if( !empty( $Admin_bar ) ) {
347
- if( !empty( $GetData["admin_bar"] ) ) {
348
- foreach( $GetData["admin_bar"] as $name => $v ) {
349
- if( !empty( $Admin_bar[$name] ) ) {
350
- unset( $Admin_bar[$name] );
351
- }
352
- }
353
- if( !empty( $Admin_bar ) ) {
354
- update_option( $this->Record["regist_admin_bar"] , $Update );
355
- }
356
- } else {
357
- update_option( $this->Record["regist_admin_bar"] , $Update );
358
- }
359
- }
360
- }
361
 
 
362
  }
363
 
364
  // SetList
365
  function admin_bar_filter_load() {
366
- $GetData = $this->get_data( "regist_admin_bar" );
367
- $Default_bar = $GetData["admin_bar"];
368
 
369
  $Delete_bar = array( "user-actions" , "wp-logo-external" , "top-secondary" , "my-sites-super-admin" , "my-sites-list" );
370
  foreach( $Delete_bar as $del_name ) {
@@ -506,215 +464,208 @@ class WP_Admin_UI_Customize
506
  if( !empty( $menu_widget["new"] ) ) {
507
  $new_widget = 'new';
508
  }
509
-
510
- $Contents = '';
511
- $Contents .= sprintf( '<div class="widget %s">' , $menu_widget["slug"] . ' ' . $menu_widget["slug"] );
512
-
513
- $Contents .= '<div class="widget-top">';
514
- $Contents .= '<div class="widget-title-action"><a class="widget-action" href="#available"></a></div>';
515
- $Contents .= '<div class="widget-title">';
516
- $Contents .= sprintf( '<h4>%1$s : <span class="in-widget-title">%2$s</span></h4>' , $menu_widget["title"] , $menu_widget["slug"] );
517
- $Contents .= '</div>';
518
- $Contents .= '</div>';
519
-
520
- $Contents .= '<div class="widget-inside">';
521
-
522
- $Contents .= '<div class="settings">';
523
-
524
- $Contents .= '<p class="description">';
525
-
526
- $url = admin_url( $menu_widget["slug"] );
527
- if( $menu_widget["slug"] != 'separator' ) {
528
- if( ! strstr( $menu_widget["slug"] , '.php' ) ) {
529
- $url = admin_url( 'admin.php?page=' . $menu_widget["slug"] );
530
- }
531
- }
532
- $Contents .= sprintf( '<a href="%1$s" target="_blank">%2$s</a>' , $url , $menu_widget["slug"] );
533
- $Contents .= '<input type="hidden" class="slugtext" value="' . $menu_widget["slug"] . '" name="data[][slug]">';
534
- $Contents .= '</p>';
535
- $Contents .= __( 'User Roles' ) . ' : <ul class="display_roles">';
536
- foreach( $UserRoles as $role_name => $val ) {
537
- $has_cap = false;
538
- if( !empty( $val["capabilities"][$menu_widget["cap"]] ) or $role_name == $menu_widget["cap"] ) {
539
- $has_cap = 'has_cap';
540
- }
541
- $Contents .= sprintf( '<li class="%1$s %2$s">%3$s</li>' , $role_name , $has_cap , $val["label"] );
542
- }
543
- $Contents .= '</ul>';
544
- $Contents .= '<label>';
545
- $Contents .= __( 'Title' ) . ' : ' . sprintf( '<input type="text" class="regular-text titletext" value="%s" name="data[][title]">' , esc_attr( $menu_widget["title"] ) );
546
- $Contents .= '</label>';
547
- $Contents .= sprintf( '<input type="hidden" class="parent_slugtext" value="%s" name="data[][parent_slug]">' , $menu_widget["parent_slug"] );
548
-
549
- $Contents .= '</div>';
550
-
551
- if( $menu_widget["slug"] != 'separator' ) {
552
- $Contents .= '<div class="submenu">';
553
-
554
- $Contents .= '<p class="description">' . __( 'Sub Menus' , $this->ltd ) . '</p>';
555
- if( empty( $menu_widget["new"] ) && !empty( $menu_widget["submenu"] ) ) {
556
- foreach( $menu_widget["submenu"] as $sm ) {
557
- $sepalator_widget = '';
558
- if( $sm["slug"] == 'separator' ) {
559
- $sepalator_widget = $sm["slug"];
560
- }
561
- $Contents .= '<div class="widget ' . $sepalator_widget . '">';
562
-
563
- $Contents .= '<div class="widget-top">';
564
- $Contents .= '<div class="widget-title-action"><a class="widget-action" href="#available"></a></div>';
565
- $Contents .= '<div class="widget-title">';
566
- $Contents .= sprintf( '<h4>%1$s : <span class="in-widget-title">%2$s</span></h4>' , $sm["title"] , $sm["slug"] );
567
- $Contents .= '</div>';
568
- $Contents .= '</div>';
569
-
570
- $Contents .= '<div class="widget-inside">';
571
-
572
- $Contents .= '<div class="settings">';
573
-
574
- $Contents .= '<p class="description">';
575
-
576
- $url = admin_url( $sm["slug"] );
577
- if( $sm["slug"] != 'separator' ) {
578
- if( ! strstr( $sm["slug"] , '.php' ) ) {
579
- if( ! strstr( $sm["parent_slug"] , '.php' ) ) {
580
- $url = admin_url( 'admin.php?page=' . $sm["slug"] );
581
- } else {
582
- if( ! strstr( $sm["parent_slug"] , '=' ) ) {
583
- $url = admin_url( $sm["parent_slug"] . '?page=' . $sm["slug"] );
584
- } else {
585
- $url = admin_url( $sm["parent_slug"] . '&page=' . $sm["slug"] );
586
- }
587
- }
588
- }
589
- }
590
- $Contents .= sprintf( '<a href="%1$s" target="_blank">%2$s</a>' , $url , $sm["slug"] );
591
- $Contents .= '<input type="hidden" class="slugtext" value="' . $sm["slug"] . '" name="data[][slug]">';
592
-
593
- $Contents .= '</p>';
594
- $Contents .= __( 'User Roles' ) . ' : <ul class="display_roles">';
595
- foreach( $UserRoles as $role_name => $val ) {
596
- $has_cap = false;
597
- if( !empty( $val["capabilities"][$sm["cap"]] ) or $role_name == $sm["cap"] ) {
598
- $has_cap = 'has_cap';
599
- }
600
- $Contents .= sprintf( '<li class="%1$s %2$s">%3$s</li>' , $role_name , $has_cap , $val["label"] );
601
- }
602
- $Contents .= '</ul>';
603
- $Contents .= '<label>';
604
- $Contents .= __( 'Title' ) . ' : ' . sprintf( '<input type="text" class="regular-text titletext" value="%s" name="data[][title]">' , esc_attr( $sm["title"] ) );
605
- $Contents .= '</label>';
606
- $Contents .= sprintf( '<input type="hidden" class="parent_slugtext" value="%s" name="data[][parent_slug]">' , $sm["parent_slug"] );
607
-
608
- $Contents .= '</div>';
609
-
610
- $Contents .= '<div class="widget-control-actions">';
611
- $Contents .= '<div class="alignleft"><a href="#remove">' . __( 'Remove' ) . '</a></div>';
612
- $Contents .= '<div class="clear"></div>';
613
- $Contents .= '</div>';
614
-
615
- $Contents .= '</div>';
616
-
617
- $Contents .= '</div>';
618
- }
619
- }
620
-
621
- $Contents .= '</div>';
622
- }
623
-
624
- $Contents .= '<div class="widget-control-actions">';
625
- $Contents .= '<div class="alignleft"><a href="#remove">' . __( 'Remove' ) . '</a></div>';
626
- $Contents .= '<div class="clear"></div>';
627
- $Contents .= '</div>';
628
-
629
-
630
- $Contents .= '</div>';
631
-
632
- $Contents .= '</div>';
633
-
634
- return $Contents;
635
  }
636
 
637
  // SetList
638
  function admin_bar_menu_widget( $menu_widget ) {
639
- $new_widget = '';
640
- if( !empty( $menu_widget["new"] ) ) {
641
- $new_widget = 'new';
642
- }
643
-
644
- $Contents = '';
645
- $Contents .= sprintf( '<div class="widget %s">' , $new_widget . $menu_widget["id"] );
646
-
647
- $Contents .= '<div class="widget-top">';
648
- $Contents .= '<div class="widget-title-action"><a class="widget-action" href="#available"></a></div>';
649
- $Contents .= '<div class="widget-title">';
650
- $Contents .= sprintf( '<h4>%1$s : <span class="in-widget-title">%2$s</span></h4>' , $menu_widget["title"] , $menu_widget["id"] );
651
- $Contents .= '</div>';
652
- $Contents .= '</div>';
653
-
654
- $Contents .= '<div class="widget-inside">';
655
-
656
- $Contents .= '<div class="settings">';
657
- $Contents .= '<p class="description">';
658
- $Contents .= sprintf( '<input type="hidden" class="idtext" value="%s" name="data[][id]">' , $menu_widget["id"] );
659
-
660
- if( $menu_widget["id"] == 'custom_node' ) {
661
- $Contents .= 'URL: <input type="text" class="regular-text linktext" value="" name="data[][href]" placeholder="http://">';
662
- } else {
663
- $Contents .= sprintf( '<a href="%1$s" target="_blank">%2$s</a>' , $menu_widget["href"] , $menu_widget["id"] );
664
- $Contents .= sprintf( '<input type="hidden" class="linktext" value="%s" name="data[][href]">' , $menu_widget["href"] );
665
- }
666
- $Contents .= '</p>';
667
-
668
- $Contents .= sprintf( '<label>%1$s : <input type="text" class="regular-text titletext" value="%2$s" name="data[][title]"></label>' , __( 'Title' ) , esc_html( $menu_widget["title"] ) );
669
- $Contents .= sprintf( '<input type="hidden" class="parent" value="%s" name="data[][parent]">', $menu_widget["parent"] );
670
-
671
- $Contents .= '</div>';
672
-
673
- $Contents .= '<div class="submenu">';
674
- $Contents .= '<p class="description">' . __( 'Sub Menus' , $this->ltd ) . '</p>';
675
- if( empty( $menu_widget["new"] ) && !empty( $menu_widget["subnode"] ) ) {
676
- foreach($menu_widget["subnode"] as $sm ) {
677
- $Contents .= '<div class="widget">';
678
-
679
- $Contents .= '<div class="widget-top">';
680
- $Contents .= '<div class="widget-title-action"><a class="widget-action" href="#available"></a></div>';
681
- $Contents .= '<div class="widget-title">';
682
- $Contents .= sprintf( '<h4>%1$s : <span class="in-widget-title">%2$s</span></h4>' , $sm["title"] , $sm["id"] );
683
- $Contents .= '</div>';
684
- $Contents .= '</div>';
685
-
686
- $Contents .= '<div class="widget-inside">';
687
-
688
- $Contents .= '<div class="settings">';
689
- $Contents .= '<p class="description">';
690
- $Contents .= sprintf( '<a href="%1$s" target="_blank">%2$s</a>' , $sm["href"] , $sm["id"] );
691
- $Contents .= sprintf( '<input type="hidden" class="idtext" value="%s" name="data[][id]">' , $sm["id"] );
692
- $Contents .= sprintf( '<input type="hidden" class="linktext" value="%s" name="data[][href]">' , $sm["href"] );
693
- $Contents .= '</p>';
694
- $Contents .= sprintf( '<label>%1$s : <input type="text" class="regular-text titletext" value="%2$s" name="data[][title]"></label>' , __( 'Title' ) , esc_html( $sm["title"] ) );
695
- $Contents .= sprintf( '<input type="hidden" class="parent" value="%s" name="data[][parent]">' , $sm["parent"] );
696
- $Contents .= '</div>';
697
-
698
- $Contents .= '<div class="widget-control-actions">';
699
- $Contents .= '<div class="alignleft"><a href="#remove">' . __( 'Remove' ) . '</a></div><div class="clear"></div>';
700
- $Contents .= '</div>';
701
-
702
- $Contents .= '</div>';
703
-
704
- $Contents .= '</div>';
705
- }
706
- }
707
- $Contents .= '</div>';
708
-
709
- $Contents .= '<div class="widget-control-actions">';
710
- $Contents .= '<div class="alignleft"><a href="#remove">' . __( 'Remove' ) . '</a></div><div class="clear"></div>';
711
- $Contents .= '</div>';
712
-
713
- $Contents .= '</div>';
714
-
715
- $Contents .= '</div>';
716
-
717
- return $Contents;
 
 
 
 
 
 
 
 
 
 
718
  }
719
 
720
  // SetList
@@ -798,510 +749,6 @@ class WP_Admin_UI_Customize
798
  return $UserRole;
799
  }
800
 
801
- // SetList
802
- function set_setting_site_general( $Data ) {
803
- $Contents = "";
804
- $field = 'admin_bar';
805
-
806
- $Contents .= '<div class="postbox">';
807
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
808
- $Contents .= '<h3 class="hndle"><span>' . __( 'General' ) . '</span></h3>';
809
- $Contents .= '<div class="inside">';
810
-
811
- $Contents .= '<table class="form-table">';
812
- $Contents .= '<tbody>';
813
-
814
- $Contents .= '<tr>';
815
- $Contents .= '<th>' . $field . '</th>';
816
- $Contents .= '<td>';
817
-
818
- $arr = array( "hide" => __( 'Hide the Admin bar on the front end' , $this->ltd ) , "front" => __( 'Apply WP Admin UI Customize settings on the front end admin bar also' , $this->ltd ) );
819
- $Contents .= '<select name="data[' . $field . ']">';
820
- $Contents .= '<option value="">-</option>';
821
- foreach( $arr as $key => $label ) {
822
- $Selected = '';
823
- if( !empty( $Data[$field] ) ) {
824
- $Selected = selected( $Data[$field] , $key , false );
825
- }
826
- $Contents .= sprintf( '<option value="%1$s" %2$s>%3$s</option>' , $key , $Selected , $label );
827
- }
828
- $Contents .= '</select'>
829
- $Contents .= '</td>';
830
-
831
- $Contents .= '</tbody>';
832
- $Contents .= '</table>';
833
-
834
- $Contents .= '</div>';
835
- $Contents .= '</div>';
836
-
837
- return $Contents;
838
- }
839
-
840
- // SetList
841
- function set_setting_admin_general( $Data ) {
842
- $Contents = "";
843
-
844
- $arr = array(
845
- 'notice' => __( 'Notifications' , $this->ltd ) ,
846
- 'so' => __( 'Screen Options and Help Tab' , $this->ltd ) ,
847
- 'foot' => __( 'Footer' ) ,
848
- 'general' => __( 'General' )
849
- );
850
-
851
- foreach( $arr as $n => $k ) {
852
- $Contents .= '<div class="postbox">';
853
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
854
- $Contents .= '<h3 class="hndle"><span>' . $k . '</span></h3>';
855
- $Contents .= '<div class="inside">';
856
-
857
- $Contents .= '<table class="form-table">';
858
- $Contents .= '<tbody>';
859
-
860
- if( $n == 'notice' ) {
861
-
862
- $sub = array(
863
- 'notice_update_core' => __( 'WordPress core update notice' , $this->ltd ),
864
- 'notice_update_plugin' => __( 'Plugin update notice' , $this->ltd ),
865
- 'notice_update_theme' => __( 'Theme update notice' , $this->ltd ),
866
- );
867
-
868
- foreach( $sub as $sn => $sk ) {
869
- $Contents .= '<tr>';
870
- $Contents .= '<th>' . $sk . '</th>';
871
- $field = $sn;
872
- $Checked = "";
873
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
874
- $Contents .= '<td><label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __ ( 'Not notified' , $this->ltd ) . '</label></td>';
875
- $Contents .= '</tr>';
876
- }
877
-
878
- } elseif( $n == 'so' ) {
879
-
880
- $sub = array(
881
- 'screen_option_tab' => __( 'Screen Options' ),
882
- 'help_tab' => __( 'Help' ),
883
- );
884
-
885
- foreach( $sub as $sn => $sk ) {
886
- $Contents .= '<tr>';
887
- $Contents .= '<th>' . $sk . '</th>';
888
- $field = $sn;
889
- $Checked = "";
890
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
891
- $Contents .= '<td><label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __ ( 'Hide' ) . '</label></td>';
892
- $Contents .= '</tr>';
893
- }
894
-
895
- } elseif( $n == 'foot' ) {
896
-
897
- $Contents .= '<tr>';
898
- $Contents .= '<th>' . __( 'Footer text' , $this->ltd ) . '</th>';
899
- $field = 'footer_text'; $Val = '';
900
- if( !empty( $Data[$field] ) ) $Val = esc_html( stripslashes( $Data[$field] ) );
901
- $Contents .= '<td>';
902
- $Contents .= '<input type="text" name="data[' . $field . ']" value="' . $Val . '" class="large-text" />';
903
- $Contents .= '<p class="description">' . __( 'Default' ) . ': ' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</p>';
904
- $Contents .= '<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="' . __( 'Variables' , $this->ltd ) . '" class="thickbox">' . __( 'Available Shortcodes' , $this->ltd ) . '</a>';
905
- $Contents .= '</td>';
906
- $Contents .= '</tr>';
907
-
908
- } elseif( $n == 'general' ) {
909
-
910
- $Contents .= '<tr>';
911
- $Contents .= '<th>' . __( 'CSS file to load' , $this->ltd ) . '</th>';
912
- $field = 'css'; $Val = '';
913
- if( !empty( $Data[$field] ) ) $Val = strip_tags( $Data[$field] );
914
- $Contents .= '<td><input type="text" name="data[' . $field . ']" value="' . $Val . '" class="regular-text" />';
915
- $Contents .= '<a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="' . __( 'Variables' , $this->ltd ) . '" class="thickbox">' . __( 'Available Shortcodes' , $this->ltd ) . '</a></td>';
916
- $Contents .= '</tr>';
917
-
918
- $Contents .= '<tr>';
919
- $Contents .= '<th>' . __( 'Title tag for Admin screen' , $this->ltd ) . '</th>';
920
- $field = 'title_tag'; $Checked = '';
921
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
922
- $Contents .= '<td><label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __( 'Remove "Wordpress" from the title tag of the Admin screen' , $this->ltd ) . '</label></td>';
923
- $Contents .= '</tr>';
924
-
925
- }
926
-
927
-
928
- $Contents .= '</tbody>';
929
- $Contents .= '</table>';
930
-
931
- $Contents .= '</div>';
932
- $Contents .= '</div>';
933
- }
934
-
935
- return $Contents;
936
- }
937
-
938
- // SetList
939
- function set_setting_dashboard( $Data ) {
940
- $Contents = "";
941
-
942
- $arr = array(
943
- 'meta' => __( 'Meta boxes' , $this->ltd ) ,
944
- 'other' => __( 'Other' , $this->ltd ) ,
945
- );
946
-
947
- foreach( $arr as $n => $k ) {
948
- $Contents .= '<div class="postbox">';
949
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
950
- $Contents .= '<h3 class="hndle"><span>' . $k . '</span></h3>';
951
- $Contents .= '<div class="inside">';
952
-
953
- $Contents .= '<table class="form-table">';
954
- $Contents .= '<tbody>';
955
-
956
- if( $n == 'meta' ) {
957
-
958
- $metaboxes = array(
959
- "show_welcome_panel" => __( 'Welcome Panel' ),
960
- "dashboard_right_now" => __( 'Right Now' ),
961
- "dashboard_recent_comments" => __( 'Recent Comments' ),
962
- "dashboard_incoming_links" => __( 'Incoming Links' ),
963
- "dashboard_plugins" => __( 'Plugins' ),
964
- "dashboard_quick_press" => __( 'QuickPress' ),
965
- "dashboard_recent_drafts" => __( 'Recent Drafts' ),
966
- "dashboard_primary" => __( 'WordPress Blog' ),
967
- "dashboard_secondary" => __( 'Other WordPress News' ),
968
- );
969
-
970
- foreach( $metaboxes as $meta_key => $meta_label ) {
971
- $Contents .= '<tr>';
972
- $Contents .= '<th>' . $meta_label . '</th>';
973
- $field = $meta_key; $Checked = '';
974
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
975
- $Contents .= '<td><label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __( 'Hide' ) . '</label></td>';
976
- $Contents .= '</tr>';
977
- }
978
-
979
- } elseif( $n == 'other' ) {
980
-
981
- $Contents .= '<tr>';
982
- $Contents .= '<th>' . __( 'Meta box movement restriction' , $this->ltd ) . '</th>';
983
- $field = 'metabox_move'; $Checked = '';
984
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
985
- $Contents .= '<td><label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __( 'Lock meta box positions' , $this->ltd ) . '</label></td>';
986
- $Contents .= '</tr>';
987
-
988
- }
989
-
990
- $Contents .= '</tbody>';
991
- $Contents .= '</table>';
992
-
993
- $Contents .= '</div>';
994
- $Contents .= '</div>';
995
- }
996
-
997
- return $Contents;
998
- }
999
-
1000
- // SetList
1001
- function set_setting_admin_bar( $type , $Data ) {
1002
- $AllDefaultNodes = $this->admin_bar_filter_load();
1003
- $Contents = "";
1004
-
1005
- $arr = array(
1006
- 'left' => __( 'Left' ) ,
1007
- 'right' => __( 'Right' ) ,
1008
- );
1009
-
1010
- foreach( $arr as $n => $k ) {
1011
- if( $type == $n ) {
1012
-
1013
- $Contents .= '<div class="postbox">';
1014
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
1015
- $Contents .= '<h3 class="hndle"><span>' . $k . '</span></h3>';
1016
- $Contents .= '<div class="inside">';
1017
-
1018
- if( empty( $Data ) ) {
1019
- foreach( $AllDefaultNodes[$n]["main"] as $main_node ) {
1020
- $pnsn = array();
1021
- if( !empty( $AllDefaultNodes[$n]["sub"] ) ) {
1022
- foreach( $AllDefaultNodes[$n]["sub"] as $sub_node ) {
1023
- if( $main_node->id == $sub_node->parent ) {
1024
- $pnsn[] = array( 'id' => $sub_node->id , 'title' => stripslashes( $sub_node->title ) , 'parent' => $main_node->id , 'href' => $sub_node->href , 'group' => false , 'new' => false );
1025
- }
1026
- }
1027
- }
1028
- $menu_widget = array( 'id' => $main_node->id , 'title' => stripslashes( $main_node->title ) , 'parent' => '' , 'href' => $main_node->href , 'group' => false , 'new' => false , 'subnode' => $pnsn );
1029
-
1030
- $Contents .= $this->admin_bar_menu_widget( $menu_widget );
1031
- }
1032
- } else {
1033
- if( !empty( $Data[$n]["main"] ) ) {
1034
- foreach( $Data[$n]["main"] as $main_node) {
1035
- $pnsn = array();
1036
- if( !empty( $Data[$n]["sub"] ) ) {
1037
- foreach( $Data[$n]["sub"] as $sub_node) {
1038
- if( $main_node["id"] == $sub_node["parent"] ) {
1039
- $pnsn[] = array( 'id' => $sub_node["id"] , 'title' => stripslashes( $sub_node["title"] ) , 'parent' => $main_node["id"] , 'href' => $sub_node["href"] , 'group' => false , 'new' => false );
1040
- }
1041
- }
1042
- }
1043
- $menu_widget = array( 'id' => $main_node["id"] , 'title' => stripslashes( $main_node["title"] ) , 'parent' => '' , 'href' => $main_node["href"] , 'group' => false , 'new' => false , 'subnode' => $pnsn );
1044
- $Contents .= $this->admin_bar_menu_widget( $menu_widget );
1045
- }
1046
- }
1047
- }
1048
-
1049
- $Contents .= '</div>';
1050
- $Contents .= '</div>';
1051
- }
1052
- }
1053
-
1054
- return $Contents;
1055
- }
1056
-
1057
- // SetList
1058
- function set_setting_sidemenu( $Data ) {
1059
- $RegistMenus = $this->get_data( "regist_sidemenu" );
1060
- $Contents = "";
1061
-
1062
- $Contents .= '<div class="postbox">';
1063
- $Contents .= '<h3 class="hndle"><span>' . __( 'Current menu' , $this->ltd ) . '</span></h3>';
1064
- $Contents .= '<div class="inside">';
1065
-
1066
- if( empty( $Data ) ) {
1067
-
1068
- foreach( $RegistMenus["menu"] as $mm ) {
1069
- if( isset( $mm[2] ) && strstr( $mm[2] , 'separator' ) ) {
1070
- $menu_title = '-';
1071
- $mm[2] = 'separator';
1072
- $mwsm = array();
1073
- } elseif( !empty( $mm[0] ) ) {
1074
- $menu_title = $mm[0];
1075
- if( !empty( $mm[5] ) ) {
1076
- if( $mm[5] == 'menu-comments' ) {
1077
- $menu_title = __( 'Comments' ) . ' [comment_count]';
1078
- } elseif( $mm[5] == 'menu-appearance' ) {
1079
- $menu_title = __( 'Appearance' ) . ' [update_themes]';
1080
- } elseif( $mm[5] == 'menu-plugins' ) {
1081
- $menu_title = __( 'Plugins' ) . ' [update_plugins]';
1082
- }
1083
- }
1084
- $mwsm = array();
1085
- foreach( $RegistMenus["submenu"] as $parent_slug => $sub ) {
1086
- foreach( $sub as $sm ) {
1087
- if( $mm[2] == $parent_slug ) {
1088
- $submenu_title = $sm[0];
1089
- if( $sm[1] == 'update_core' ) {
1090
- $submenu_title = __( 'Update' ) . ' [update_total]';
1091
- }
1092
- $mwsm[] = array( 'title' => $submenu_title , 'slug' => $sm[2] , 'parent_slug' => $parent_slug , 'cap' => $sm[1] );
1093
- }
1094
- }
1095
- }
1096
- }
1097
-
1098
- $menu_widget = array( 'title' => $menu_title , 'slug' => $mm[2] , 'parent_slug' => '' , 'new' => false , 'cap' => $mm[1] , 'submenu' => $mwsm );
1099
- $Contents .= $this->sidebar_menu_widget( $menu_widget );
1100
-
1101
- }
1102
-
1103
- } else {
1104
-
1105
- if( !empty( $Data["main"] ) ) {
1106
- foreach($Data["main"] as $mm) {
1107
- if( !empty( $mm["title"] ) ) {
1108
- $mwsm = array();
1109
-
1110
- if( !empty( $Data["sub"] ) ) {
1111
- foreach( $Data["sub"] as $sm ) {
1112
- if( $mm["slug"] == $sm["parent_slug"] ) {
1113
- $cap = "";
1114
- foreach( $RegistMenus["submenu"][$mm["slug"]] as $k => $tmp_sm ) {
1115
- if( $tmp_sm[2] == $sm["slug"] ) {
1116
- $cap = $tmp_sm[1];
1117
- break;
1118
- }
1119
- }
1120
- $mwsm[] = array( 'title' => $sm["title"] , 'slug' => $sm["slug"] , 'parent_slug' => $sm["parent_slug"] , 'cap' => $cap );
1121
- }
1122
- }
1123
- }
1124
- $cap = "";
1125
- foreach( $RegistMenus["menu"] as $tmp_m ) {
1126
- if( $tmp_m[2] == $mm["slug"] ) {
1127
- if( $tmp_m[2] == $mm["slug"] ) {
1128
- $cap = $tmp_m[1];
1129
- break;
1130
- }
1131
- }
1132
- }
1133
- $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'cap' =>$cap , 'submenu' => $mwsm );
1134
- $Contents .= $this->sidebar_menu_widget( $menu_widget );
1135
- }
1136
- }
1137
- }
1138
- }
1139
-
1140
- $Contents .= '</div>';
1141
- $Contents .= '</div>';
1142
-
1143
- $Contents .= '<p class="sidebar_setting_delete"><a href="#">' . __( 'Delete all' ) . '</a></p>';
1144
-
1145
- return $Contents;
1146
- }
1147
-
1148
- // SetList
1149
- function set_setting_removemetabox( $type , $Data ) {
1150
- $Metaboxes = $this->get_data( "regist_metabox" );
1151
- $Contents = "";
1152
-
1153
- $arr = array(
1154
- 'post' => __( 'Post' ) ,
1155
- 'page' => __( 'Page' ) ,
1156
- );
1157
-
1158
- foreach( $arr as $n => $k ) {
1159
- if( $type == $n ) {
1160
-
1161
- $Contents .= '<div class="postbox">';
1162
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
1163
- $Contents .= '<h3 class="hndle"><span>' . $k . '</span></h3>';
1164
- $Contents .= '<div class="inside">';
1165
-
1166
- if( empty( $Metaboxes["metaboxes"][$type] ) ) {
1167
-
1168
- $Contents .= '<p>' . __( 'Could not read the meta box.' , $this->ltd ) . '</p>';
1169
- $Contents .= '<p>' . sprintf( __( 'Meta boxes will be loaded automatically when you Edit %s.' , $this->ltd ) , $k ) . '</p>';
1170
-
1171
- } else {
1172
-
1173
- $Contents .= '<table class="form-table">';
1174
- $Contents .= '<tbody>';
1175
-
1176
- foreach( $Metaboxes["metaboxes"][$type] as $context => $meta_box ) {
1177
- foreach( $meta_box as $priority => $box ) {
1178
- foreach( $box as $metabox_id => $metabox_title ) {
1179
- if( $metabox_id != 'submitdiv' ) {
1180
- $Contents .= '<tr>';
1181
- $Contents .= '<th>' . $metabox_title . '</th>';
1182
- $Checked = "";
1183
- if( !empty( $Data[$type][$metabox_id] ) ) $Checked = checked( $Data[$type][$metabox_id] , 1 , false );
1184
- $Contents .= '<td><label><input type="checkbox" name="data[' . $type . '][' . $metabox_id . ']" value="1" ' . $Checked . ' /> ' . __ ( 'Hide' ) . '</label></td>';
1185
- $Contents .= '</tr>';
1186
- }
1187
- }
1188
- }
1189
- }
1190
-
1191
- if( $type == 'post' ) {
1192
- global $wp_version;
1193
- if ( version_compare( $wp_version , '3.6' , '>=' ) ) {
1194
- $Contents .= '<tr>';
1195
- $Contents .= '<th>' . __( 'Post Formats' ) . '</th>';
1196
- $Checked = "";
1197
- if( !empty( $Data[$type]["postformat"] ) ) $Checked = checked( $Data[$type]["postformat"] , 1 , false );
1198
- $Contents .= '<td><label><input type="checkbox" name="data[' . $type . '][postformat]" value="1" ' . $Checked . ' /> ' . __ ( 'Hide' ) . '</label></td>';
1199
- $Contents .= '</tr>';
1200
- }
1201
- }
1202
-
1203
- $Contents .= '</tbody>';
1204
- $Contents .= '</table>';
1205
-
1206
- }
1207
-
1208
- $Contents .= '</div>';
1209
- $Contents .= '</div>';
1210
- }
1211
- }
1212
-
1213
- return $Contents;
1214
- }
1215
-
1216
- // SetList
1217
- function set_setting_post_add_edit( $Data ) {
1218
- $Contents = "";
1219
-
1220
- $Contents .= '<div class="postbox">';
1221
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
1222
- $Contents .= '<h3 class="hndle"><span>' . __( 'Add New Post' ) . ' &amp; ' . __( 'Edit Post' ) . '</span></h3>';
1223
- $Contents .= '<div class="inside">';
1224
-
1225
- $Contents .= '<table class="form-table">';
1226
- $Contents .= '<tbody>';
1227
-
1228
- $Contents .= '<tr>';
1229
- $Contents .= '<th>' . __( 'Change Permalinks' ) . '</th>';
1230
- $field = 'default_permalink';
1231
- $Checked = "";
1232
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
1233
- $Contents .= '<td>';
1234
- $Contents .= '<label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __ ( 'Hide' ) . '</label>';
1235
- $Contents .= '<p class="description">' . __( 'Only appears when you have settings to the default permalink.' , $this->ltd ) . '</p>';
1236
- $Contents .= '<p><img src="' . $this->Dir . 'images/post_add_edit_screen__edit_ppermalink.png" /></p>';
1237
-
1238
- $Contents .= '</td>';
1239
- $Contents .= '</tr>';
1240
-
1241
-
1242
- $Contents .= '</tbody>';
1243
- $Contents .= '</table>';
1244
-
1245
- $Contents .= '</div>';
1246
- $Contents .= '</div>';
1247
-
1248
- return $Contents;
1249
- }
1250
-
1251
- // SetList
1252
- function set_setting_appearance_menus( $Data ) {
1253
- $Contents = "";
1254
-
1255
- $Contents .= '<div class="postbox">';
1256
- $Contents .= '<div class="handlediv" title="Click to toggle"><br></div>';
1257
- $Contents .= '<h3 class="hndle"><span>' . __( 'Add New Post' ) . ' &amp; ' . __( 'Edit Post' ) . '</span></h3>';
1258
- $Contents .= '<div class="inside">';
1259
-
1260
- $Contents .= '<table class="form-table">';
1261
- $Contents .= '<tbody>';
1262
-
1263
- $arr = array( "add_new_menu" => __( 'Add a new menu' , $this->ltd ) , "delete_menu" => __( 'Delete Menu' ) );
1264
- foreach( $arr as $n => $k ) {
1265
- $Contents .= '<tr>';
1266
- $Contents .= '<th>' . $k . '</th>';
1267
- $field = $n;
1268
- $Checked = "";
1269
- if( !empty( $Data[$field] ) ) $Checked = checked( $Data[$field] , 1 , false );
1270
- $Contents .= '<td>';
1271
- $Contents .= '<label><input type="checkbox" name="data[' . $field . ']" value="1" ' . $Checked . ' /> ' . __ ( 'Hide' ) . '</label>';
1272
- $Contents .= '<p class="description">' . __( 'This is useful when you want to use only the menus have been created.' , $this->ltd ) . '</p>';
1273
-
1274
- global $wp_version;
1275
- if( $n == 'add_new_menu' ) {
1276
- if( version_compare( $wp_version, '3.6', '>=' ) ) {
1277
- $Contents .= '<p><img src="' . $this->Dir . 'images/appearance_menus_add_new_menu.png" /></p>';
1278
- $Contents .= '<p><img src="' . $this->Dir . 'images/appearance_menus_add_new_menu_of_location.png" /></p>';
1279
- } else {
1280
- $Contents .= '<p><img src="' . $this->Dir . 'images/3.5.1/appearance_menus_add_new_menu.png" /></p>';
1281
- }
1282
- } elseif( $n == 'delete_menu' ) {
1283
- if( version_compare( $wp_version, '3.6', '>=' ) ) {
1284
- $Contents .= '<p><img src="' . $this->Dir . 'images/appearance_menus_delete_menu.png" /></p>';
1285
- } else {
1286
- $Contents .= '<p><img src="' . $this->Dir . 'images/3.5.1/appearance_menus_delete_menu.png" /></p>';
1287
- }
1288
- }
1289
-
1290
- $Contents .= '</td>';
1291
- $Contents .= '</tr>';
1292
- }
1293
-
1294
- $Contents .= '</tbody>';
1295
- $Contents .= '</table>';
1296
-
1297
- $Contents .= '</div>';
1298
- $Contents .= '</div>';
1299
-
1300
- return $Contents;
1301
- }
1302
-
1303
-
1304
-
1305
 
1306
 
1307
  // DataUpdate
@@ -1503,7 +950,6 @@ class WP_Admin_UI_Customize
1503
  $Update[$post_type][$tmpK] = $tmpV;
1504
  }
1505
  }
1506
-
1507
  }
1508
  }
1509
 
@@ -1577,6 +1023,7 @@ class WP_Admin_UI_Customize
1577
 
1578
  // FilterStart
1579
  function FilterStart() {
 
1580
  // site
1581
  if( !is_admin() ) {
1582
  add_action( 'wp_loaded' , array( $this , 'remove_action_front' ) ) ;
@@ -1588,11 +1035,11 @@ class WP_Admin_UI_Customize
1588
  // front init
1589
  add_action( 'wp_loaded' , array( $this , 'front_init' ) );
1590
  }
1591
-
1592
  // admin UI
1593
  if( is_admin() && !is_network_admin () ) {
1594
  // default side menu load.
1595
- add_action( 'admin_init' , array( $this , 'sidemenu_default_load' ) );
1596
 
1597
  // default admin bar menu load.
1598
  add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_default_load' ) , 1 );
@@ -1638,7 +1085,7 @@ class WP_Admin_UI_Customize
1638
  // FilterStart
1639
  function front_init() {
1640
 
1641
- $SettingRole = $this->get_data( 'user_role' );
1642
  $SettingRole = apply_filters( 'wauc_pre_setting_roles' , $SettingRole );
1643
 
1644
  if( !empty( $SettingRole ) ) {
@@ -1649,7 +1096,7 @@ class WP_Admin_UI_Customize
1649
  if( !is_network_admin() && !empty( $UserRole ) ) {
1650
  if( array_key_exists( $UserRole , $SettingRole ) ) {
1651
 
1652
- $GetData = $this->get_data( 'site' );
1653
 
1654
  if( !empty( $GetData["admin_bar"] ) ) {
1655
  if( $GetData["admin_bar"] == "hide" ) {
@@ -1761,7 +1208,7 @@ class WP_Admin_UI_Customize
1761
  function admin_bar_menu() {
1762
  global $wp_admin_bar;
1763
 
1764
- $GetData = $this->get_data( 'admin_bar_menu' );
1765
 
1766
  if( !empty( $GetData["UPFN"] ) ) {
1767
  unset( $GetData["UPFN"] );
@@ -1782,6 +1229,9 @@ class WP_Admin_UI_Customize
1782
  foreach($allnodes as $depth => $nodes) {
1783
  foreach($nodes as $node) {
1784
  $args = array( "id" => $node["id"] , "title" => stripslashes( $node["title"] ) , "href" => $node["href"] , "parent" => "" );
 
 
 
1785
  if( $depth == 'sub' ) {
1786
  $args["parent"] = $node["parent"];
1787
  }
@@ -1831,7 +1281,7 @@ class WP_Admin_UI_Customize
1831
 
1832
  // FilterStart
1833
  function notice_dismiss() {
1834
- $GetData = $this->get_data( 'admin_general' );
1835
 
1836
  if( !empty( $GetData["UPFN"] ) ) {
1837
 
@@ -1874,7 +1324,7 @@ class WP_Admin_UI_Customize
1874
 
1875
  // FilterStart
1876
  function remove_tab() {
1877
- $GetData = $this->get_data( 'admin_general' );
1878
 
1879
  if( !empty( $GetData["UPFN"] ) ) {
1880
  unset( $GetData["UPFN"] );
@@ -1893,7 +1343,7 @@ class WP_Admin_UI_Customize
1893
 
1894
  // FilterStart
1895
  function admin_footer_text( $text ) {
1896
- $GetData = $this->get_data( 'admin_general' );
1897
 
1898
  $footer_text = $text;
1899
  if( !empty( $GetData["UPFN"] ) ) {
@@ -1907,7 +1357,7 @@ class WP_Admin_UI_Customize
1907
 
1908
  // FilterStart
1909
  function load_css() {
1910
- $GetData = $this->get_data( 'admin_general' );
1911
 
1912
  if( !empty( $GetData["UPFN"] ) ) {
1913
  unset( $GetData["UPFN"] );
@@ -1928,7 +1378,7 @@ class WP_Admin_UI_Customize
1928
  function wp_dashboard_setup() {
1929
  global $wp_meta_boxes;
1930
 
1931
- $GetData = $this->get_data( 'dashboard' );
1932
 
1933
  if( !empty( $GetData ) && is_array( $GetData ) ) {
1934
  unset($GetData["UPFN"]);
@@ -1950,7 +1400,7 @@ class WP_Admin_UI_Customize
1950
  } elseif( array_key_exists( $id , $dashboard_widgets ) ){
1951
  remove_meta_box( $id , 'dashboard' , $dashboard_widgets[$id] );
1952
  } elseif( $id == 'metabox_move' ) {
1953
- wp_enqueue_script( 'not-move' , $this->Dir . 'js/dashboard/not_move.js' , array( 'jquery' , 'jquery-ui-sortable' , 'dashboard' ) , $this->Ver , true );
1954
  }
1955
  }
1956
  }
@@ -1962,7 +1412,7 @@ class WP_Admin_UI_Customize
1962
  global $wp_meta_boxes;
1963
  global $current_screen;
1964
 
1965
- $GetData = $this->get_data( 'removemetabox' );
1966
 
1967
  if( !empty( $GetData["UPFN"] ) ) {
1968
  unset( $GetData["UPFN"] );
@@ -2009,7 +1459,7 @@ class WP_Admin_UI_Customize
2009
  function remove_postformats() {
2010
  global $wp_version;
2011
  if ( version_compare( $wp_version , '3.6' , '>=' ) ) {
2012
- $GetData = $this->get_data( 'removemetabox' );
2013
 
2014
  if( !empty( $GetData["UPFN"] ) ) {
2015
  unset( $GetData["UPFN"] );
@@ -2031,8 +1481,8 @@ class WP_Admin_UI_Customize
2031
  global $menu;
2032
  global $submenu;
2033
 
2034
- $GetData = $this->get_data( 'sidemenu' );
2035
- $General = $this->get_data( 'admin_general' );
2036
 
2037
  if( !empty( $GetData["UPFN"] ) ) {
2038
  unset( $GetData["UPFN"] );
@@ -2172,7 +1622,7 @@ class WP_Admin_UI_Customize
2172
 
2173
  // FilterStart
2174
  function add_edit_post_change_permalink( $permalink_html ) {
2175
- $GetData = $this->get_data( 'post_add_edit' );
2176
 
2177
  if( !empty( $GetData["UPFN"] ) ) {
2178
  unset( $GetData["UPFN"] );
@@ -2193,7 +1643,7 @@ class WP_Admin_UI_Customize
2193
 
2194
  // FilterStart
2195
  function admin_title( $title ) {
2196
- $GetData = $this->get_data( 'admin_general' );
2197
 
2198
  if( !empty( $GetData["UPFN"] ) ) {
2199
  unset( $GetData["UPFN"] );
@@ -2210,7 +1660,7 @@ class WP_Admin_UI_Customize
2210
 
2211
  // FilterStart
2212
  function nav_menus() {
2213
- $GetData = $this->get_data( 'appearance_menus' );
2214
  if( !empty( $GetData["UPFN"] ) ) {
2215
  unset( $GetData["UPFN"] );
2216
 
@@ -2231,7 +1681,8 @@ class WP_Admin_UI_Customize
2231
 
2232
  // FilterStart
2233
  function layout_footer( $text ) {
2234
- $text = '<img src="http://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>';
 
2235
  return $text;
2236
  }
2237
 
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
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=1_3_8
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
42
  $Nonces,
43
  $UPFN,
44
  $DonateKey,
45
+ $Menu,
46
+ $SubMenu,
47
+ $Admin_bar,
48
  $Msg;
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';
63
  "admin_general" => $this->ltd . '_admin_general_setting',
64
  "dashboard" => $this->ltd . '_dashboard_setting',
65
  "admin_bar_menu" => $this->ltd . '_admin_bar_menu_setting',
 
66
  "sidemenu" => $this->ltd . '_sidemenu_setting',
 
67
  "removemetabox" => $this->ltd . '_removemetabox_setting',
68
  "regist_metabox" => $this->ltd . '_regist_metabox',
69
  "post_add_edit" => $this->ltd . '_post_add_edit_setting',
238
  return $Data;
239
  }
240
 
241
+ // GetData
242
+ function get_flit_data( $record ) {
243
+ $GetData = get_option( $this->Record[$record] );
244
+ $GetData = apply_filters( 'wauc_pre_get_filt_data' , $GetData , $record );
245
+
246
+ $Data = array();
247
+ if( !empty( $GetData ) && !empty( $GetData["UPFN"] ) && $GetData["UPFN"] == $this->UPFN ) {
248
+ $Data = $GetData;
249
+ }
250
+
251
+ return $Data;
252
+ }
253
+
254
 
255
 
256
  // Settingcheck
307
 
308
  // SetList
309
  function sidemenu_default_load() {
310
+ global $menu , $submenu;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
 
312
+ $this->Menu = $menu;
313
+ $this->SubMenu = $submenu;
314
  }
315
 
316
  // SetList
317
  function admin_bar_default_load( $wp_admin_bar ) {
318
+ global $wp_admin_bar;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
 
320
+ $this->Admin_bar = $wp_admin_bar->get_nodes();
321
  }
322
 
323
  // SetList
324
  function admin_bar_filter_load() {
325
+ $Default_bar = $this->Admin_bar;
 
326
 
327
  $Delete_bar = array( "user-actions" , "wp-logo-external" , "top-secondary" , "my-sites-super-admin" , "my-sites-list" );
328
  foreach( $Delete_bar as $del_name ) {
464
  if( !empty( $menu_widget["new"] ) ) {
465
  $new_widget = 'new';
466
  }
467
+ ?>
468
+ <div class="widget <?php echo $menu_widget["slug"]; ?> <?php echo $new_widget; ?>">
469
+
470
+ <div class="widget-top">
471
+ <div class="widget-title-action">
472
+ <a class="widget-action" href="#available"></a>
473
+ </div>
474
+ <div class="widget-title">
475
+ <h4>
476
+ <?php echo $menu_widget["title"]; ?>
477
+ : <span class="in-widget-title"><?php echo $menu_widget["slug"]; ?></span>
478
+ </h4>
479
+ </div>
480
+ </div>
481
+
482
+ <div class="widget-inside">
483
+ <div class="settings">
484
+ <p class="description">
485
+ <?php if( $menu_widget["slug"] == 'custom_menu' ) : ?>
486
+ <?php _e( 'Url' ); ?>:
487
+ <input type="text" class="slugtext" value="" name="data[][slug]">
488
+ <?php else : ?>
489
+ <?php _e( 'Slug' ); ?>: <?php echo $menu_widget["slug"]; ?>
490
+ <input type="hidden" class="slugtext" value="<?php echo $menu_widget["slug"]; ?>" name="data[][slug]">
491
+ <?php endif; ?>
492
+ </p>
493
+ <?php _e( 'User Roles' ); ?> :
494
+ <ul class="display_roles">
495
+ <?php foreach( $UserRoles as $role_name => $val ) : ?>
496
+ <?php $has_cap = false; ?>
497
+ <?php if( !empty( $val["capabilities"][$menu_widget["cap"]] ) or $role_name == $menu_widget["cap"] ) : ?>
498
+ <?php $has_cap = 'has_cap'; ?>
499
+ <?php endif; ?>
500
+ <li class="<?php echo $role_name; ?> <?php echo $has_cap; ?>"><?php echo $val["label"]; ?></li>
501
+ <?php endforeach ;?>
502
+ </ul>
503
+ <label>
504
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $menu_widget["title"] ); ?>" name="data[][title]">
505
+ </label>
506
+ <input type="hidden" class="parent_slugtext" value="<?php echo $menu_widget["parent_slug"]; ?>" name="data[][parent_slug]">
507
+ </div>
508
+
509
+ <?php if( $menu_widget["slug"] != 'separator' ) : ?>
510
+ <div class="submenu">
511
+ <p class="description"><?php _e( 'Sub Menus' , $this->ltd ); ?></p>
512
+ <?php if( empty( $menu_widget["new"] ) && !empty( $menu_widget["submenu"] ) ) : ?>
513
+ <?php foreach( $menu_widget["submenu"] as $sm ) : ?>
514
+ <?php $sepalator_widget = ''; ?>
515
+ <?php if( $sm["slug"] == 'separator' ) : $sepalator_widget = $sm["slug"]; endif; ?>
516
+
517
+ <div class="widget <?php echo $sepalator_widget; ?>">
518
+
519
+ <div class="widget-top">
520
+ <div class="widget-title-action">
521
+ <a class="widget-action" href="#available"></a>
522
+ </div>
523
+ <div class="widget-title">
524
+ <h4>
525
+ <?php echo $sm["title"]; ?>
526
+ : <span class="in-widget-title"><?php echo $sm["slug"]; ?></span>
527
+ </h4>
528
+ </div>
529
+ </div>
530
+
531
+ <div class="widget-inside">
532
+ <div class="settings">
533
+ <p class="description">
534
+ <?php _e( 'Slug' ); ?>: <?php echo $sm["slug"]; ?>
535
+ <input type="hidden" class="slugtext" value="<?php echo $sm["slug"]; ?>" name="data[][slug]">
536
+ </p>
537
+ <?php _e( 'User Roles' ); ?> :
538
+ <ul class="display_roles">
539
+ <?php foreach( $UserRoles as $role_name => $val ) : ?>
540
+ <?php $has_cap = false; ?>
541
+ <?php if( !empty( $val["capabilities"][$sm["cap"]] ) or $role_name == $sm["cap"] ) : ?>
542
+ <?php $has_cap = 'has_cap'; ?>
543
+ <?php endif; ?>
544
+ <li class="<?php echo $role_name; ?> <?php echo $has_cap; ?>"><?php echo $val["label"]; ?></li>
545
+ <?php endforeach ;?>
546
+ </ul>
547
+ <label>
548
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_attr( $sm["title"] ); ?>" name="data[][title]">
549
+ </label>
550
+ <input type="hidden" class="parent_slugtext" value="<?php echo $sm["parent_slug"]; ?>" name="data[][parent_slug]">
551
+ </div>
552
+ <div class="widget-control-actions">
553
+ <div class="alignleft">
554
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
555
+ </div>
556
+ <div class="clear"></div>
557
+ </div>
558
+ </div>
559
+ </div>
560
+
561
+ <?php endforeach; ?>
562
+ <?php endif; ?>
563
+ </div>
564
+ <div class="widget-control-actions">
565
+ <div class="alignleft">
566
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
567
+ </div>
568
+ <div class="clear"></div>
569
+ </div>
570
+
571
+ <?php endif; ?>
572
+ </div>
573
+
574
+ </div>
575
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
576
  }
577
 
578
  // SetList
579
  function admin_bar_menu_widget( $menu_widget ) {
580
+ $new_widget = '';
581
+ if( !empty( $menu_widget["new"] ) ) {
582
+ $new_widget = 'new';
583
+ }
584
+ ?>
585
+ <div class="widget <?php echo $new_widget; ?> <?php echo $menu_widget["id"]; ?>">
586
+
587
+ <div class="widget-top">
588
+ <div class="widget-title-action">
589
+ <a class="widget-action" href="#available"></a>
590
+ </div>
591
+ <div class="widget-title">
592
+ <h4>
593
+ <?php echo $menu_widget["title"]; ?>
594
+ : <span class="in-widget-title"><?php echo $menu_widget["id"]; ?></span>
595
+ </h4>
596
+ </div>
597
+ </div>
598
+
599
+ <div class="widget-inside">
600
+ <div class="settings">
601
+ <p class="description">
602
+ <input type="hidden" class="idtext" value="<?php echo $menu_widget["id"]; ?>" name="data[][id]">
603
+ <?php if( $menu_widget["id"] == 'custom_node' ) : ?>
604
+ URL: <input type="text" class="regular-text linktext" value="" name="data[][href]" placeholder="http://">
605
+ <?php else: ?>
606
+ <a href="<?php echo $menu_widget["href"]; ?>" target="_blank"><?php echo $menu_widget["id"]; ?></a>
607
+ <input type="hidden" class="linktext" value="<?php echo $menu_widget["href"]; ?>" name="data[][href]">
608
+ <?php endif; ?>
609
+ </p>
610
+ <label>
611
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]">
612
+ </label>
613
+ <input type="hidden" class="parent" value="<?php echo $menu_widget["parent"]; ?>" name="data[][parent]">
614
+ </div>
615
+
616
+ <div class="submenu">
617
+ <p class="description"><?php _e( 'Sub Menus' , $this->ltd ); ?></p>
618
+ <?php if( empty( $menu_widget["new"] ) && !empty( $menu_widget["subnode"] ) ) : ?>
619
+ <?php foreach( $menu_widget["subnode"] as $sm ) : ?>
620
+
621
+ <div class="widget">
622
+
623
+ <div class="widget-top">
624
+ <div class="widget-title-action">
625
+ <a class="widget-action" href="#available"></a>
626
+ </div>
627
+ <div class="widget-title">
628
+ <h4>
629
+ <?php echo $sm["title"]; ?>
630
+ : <span class="in-widget-title"><?php echo $sm["id"]; ?></span>
631
+ </h4>
632
+ </div>
633
+ </div>
634
+
635
+ <div class="widget-inside">
636
+ <div class="settings">
637
+ <p class="description">
638
+ <input type="hidden" class="idtext" value="<?php echo $sm["id"]; ?>" name="data[][id]">
639
+ <a href="<?php echo $sm["href"]; ?>" target="_blank"><?php echo $sm["id"]; ?></a>
640
+ <input type="hidden" class="linktext" value="<?php echo $sm["href"]; ?>" name="data[][href]">
641
+ </p>
642
+ <label>
643
+ <?php _e( 'Title' ); ?> : <input type="text" class="regular-text titletext" value="<?php echo esc_html( $sm["title"] ); ?>" name="data[][title]">
644
+ </label>
645
+ <input type="hidden" class="parent" value="<?php echo $sm["parent"]; ?>" name="data[][parent]">
646
+ </div>
647
+ <div class="widget-control-actions">
648
+ <div class="alignleft">
649
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
650
+ </div>
651
+ <div class="clear"></div>
652
+ </div>
653
+ </div>
654
+ </div>
655
+
656
+ <?php endforeach; ?>
657
+ <?php endif; ?>
658
+ </div>
659
+ <div class="widget-control-actions">
660
+ <div class="alignleft">
661
+ <a href="#remove"><?php _e( 'Remove' ); ?></a>
662
+ </div>
663
+ <div class="clear"></div>
664
+ </div>
665
+ </div>
666
+
667
+ </div>
668
+ <?php
669
  }
670
 
671
  // SetList
749
  return $UserRole;
750
  }
751
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
 
753
 
754
  // DataUpdate
950
  $Update[$post_type][$tmpK] = $tmpV;
951
  }
952
  }
 
953
  }
954
  }
955
 
1023
 
1024
  // FilterStart
1025
  function FilterStart() {
1026
+
1027
  // site
1028
  if( !is_admin() ) {
1029
  add_action( 'wp_loaded' , array( $this , 'remove_action_front' ) ) ;
1035
  // front init
1036
  add_action( 'wp_loaded' , array( $this , 'front_init' ) );
1037
  }
1038
+
1039
  // admin UI
1040
  if( is_admin() && !is_network_admin () ) {
1041
  // default side menu load.
1042
+ add_action( 'admin_menu' , array( $this , 'sidemenu_default_load' ) , 10000 );
1043
 
1044
  // default admin bar menu load.
1045
  add_action( 'wp_before_admin_bar_render' , array( $this , 'admin_bar_default_load' ) , 1 );
1085
  // FilterStart
1086
  function front_init() {
1087
 
1088
+ $SettingRole = $this->get_flit_data( 'user_role' );
1089
  $SettingRole = apply_filters( 'wauc_pre_setting_roles' , $SettingRole );
1090
 
1091
  if( !empty( $SettingRole ) ) {
1096
  if( !is_network_admin() && !empty( $UserRole ) ) {
1097
  if( array_key_exists( $UserRole , $SettingRole ) ) {
1098
 
1099
+ $GetData = $this->get_flit_data( 'site' );
1100
 
1101
  if( !empty( $GetData["admin_bar"] ) ) {
1102
  if( $GetData["admin_bar"] == "hide" ) {
1208
  function admin_bar_menu() {
1209
  global $wp_admin_bar;
1210
 
1211
+ $GetData = $this->get_flit_data( 'admin_bar_menu' );
1212
 
1213
  if( !empty( $GetData["UPFN"] ) ) {
1214
  unset( $GetData["UPFN"] );
1229
  foreach($allnodes as $depth => $nodes) {
1230
  foreach($nodes as $node) {
1231
  $args = array( "id" => $node["id"] , "title" => stripslashes( $node["title"] ) , "href" => $node["href"] , "parent" => "" );
1232
+ if( strstr( $node["id"] , 'custom_node' ) ) {
1233
+ $args["href"] = $this->val_replace( $node["href"] );
1234
+ }
1235
  if( $depth == 'sub' ) {
1236
  $args["parent"] = $node["parent"];
1237
  }
1281
 
1282
  // FilterStart
1283
  function notice_dismiss() {
1284
+ $GetData = $this->get_flit_data( 'admin_general' );
1285
 
1286
  if( !empty( $GetData["UPFN"] ) ) {
1287
 
1324
 
1325
  // FilterStart
1326
  function remove_tab() {
1327
+ $GetData = $this->get_flit_data( 'admin_general' );
1328
 
1329
  if( !empty( $GetData["UPFN"] ) ) {
1330
  unset( $GetData["UPFN"] );
1343
 
1344
  // FilterStart
1345
  function admin_footer_text( $text ) {
1346
+ $GetData = $this->get_flit_data( 'admin_general' );
1347
 
1348
  $footer_text = $text;
1349
  if( !empty( $GetData["UPFN"] ) ) {
1357
 
1358
  // FilterStart
1359
  function load_css() {
1360
+ $GetData = $this->get_flit_data( 'admin_general' );
1361
 
1362
  if( !empty( $GetData["UPFN"] ) ) {
1363
  unset( $GetData["UPFN"] );
1378
  function wp_dashboard_setup() {
1379
  global $wp_meta_boxes;
1380
 
1381
+ $GetData = $this->get_flit_data( 'dashboard' );
1382
 
1383
  if( !empty( $GetData ) && is_array( $GetData ) ) {
1384
  unset($GetData["UPFN"]);
1400
  } elseif( array_key_exists( $id , $dashboard_widgets ) ){
1401
  remove_meta_box( $id , 'dashboard' , $dashboard_widgets[$id] );
1402
  } elseif( $id == 'metabox_move' ) {
1403
+ wp_enqueue_script( 'not-move' , $this->Url . 'js/dashboard/not_move.js' , array( 'jquery' , 'jquery-ui-sortable' , 'dashboard' ) , $this->Ver , true );
1404
  }
1405
  }
1406
  }
1412
  global $wp_meta_boxes;
1413
  global $current_screen;
1414
 
1415
+ $GetData = $this->get_flit_data( 'removemetabox' );
1416
 
1417
  if( !empty( $GetData["UPFN"] ) ) {
1418
  unset( $GetData["UPFN"] );
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"] );
1481
  global $menu;
1482
  global $submenu;
1483
 
1484
+ $GetData = $this->get_flit_data( 'sidemenu' );
1485
+ $General = $this->get_flit_data( 'admin_general' );
1486
 
1487
  if( !empty( $GetData["UPFN"] ) ) {
1488
  unset( $GetData["UPFN"] );
1622
 
1623
  // FilterStart
1624
  function add_edit_post_change_permalink( $permalink_html ) {
1625
+ $GetData = $this->get_flit_data( 'post_add_edit' );
1626
 
1627
  if( !empty( $GetData["UPFN"] ) ) {
1628
  unset( $GetData["UPFN"] );
1643
 
1644
  // FilterStart
1645
  function admin_title( $title ) {
1646
+ $GetData = $this->get_flit_data( 'admin_general' );
1647
 
1648
  if( !empty( $GetData["UPFN"] ) ) {
1649
  unset( $GetData["UPFN"] );
1660
 
1661
  // FilterStart
1662
  function nav_menus() {
1663
+ $GetData = $this->get_flit_data( 'appearance_menus' );
1664
  if( !empty( $GetData["UPFN"] ) ) {
1665
  unset( $GetData["UPFN"] );
1666
 
1681
 
1682
  // FilterStart
1683
  function layout_footer( $text ) {
1684
+ $schema = is_ssl() ? 'https://' : 'http://';
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