Adminimize - Version 1.8.1

Version Description

(01/10/2013) = * Fix PHP notice on message for network * Check for active links manager; change from WP 3.5 * Add Widget settings (Beta) * Fix for remove admin bar in backend * Remove Backend options, there not usable with WP 3.5 and earlier * Fix 'Category Height' in post to use also in newer versions of WP * Fix to hide foorer, but it is usable to add custom content * Fix Hints, Options for Multisite install * Add Admin Bar options (Beta)

Download this release

Release Info

Developer Bueltge
Plugin Icon wp plugin Adminimize
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

Adminimize-da_DK.txt DELETED
@@ -1,21 +0,0 @@
1
- Adminimize 1.7.9
2
-
3
- Filerne skal ligge i mappen adminimize/languages
4
-
5
- Anvender du de gemte stier, skal du unzippe til wp-content/plugins.
6
- S� pakkes sprogfilerne automatisk ud til wp-content/plugins/adminimize
7
-
8
- Du kan tjekke for opdateringer til sprogfilerne p� http://wordpress.blogos.dk/wpdadkdownloads/
9
- eller via http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208
10
- Se evt. ogs� http://wordpress.blogos.dk/tag/adminimize
11
-
12
-
13
-
14
- FOR THE DEVELOPER
15
- You are very welcome to check for updated language files in one of the following ways:
16
-
17
- 1. On my downloads page that list all files available for download: http://wordpress.blogos.dk/wpdadkdownloads/
18
-
19
- 2. Directly on my Download Monitor download page: http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208
20
-
21
- If I have blogged about your plugin, theme or other resource, you will be able to find it via this tag: http://wordpress.blogos.dk/tag/adminimize
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adminimize.php CHANGED
@@ -7,12 +7,12 @@
7
  /**
8
  * Plugin Name: Adminimize
9
  * Plugin URI: http://bueltge.de/wordpress-admin-theme-adminimize/674/
10
- * Text Domain: adminimize
11
  * Domain Path: /languages
12
  * Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
13
  * Author: Frank Bültge
14
  * Author URI: http://bueltge.de/
15
- * Version: 1.8.0
16
  * License: GPLv3
17
  */
18
 
@@ -293,10 +293,15 @@ function _mw_adminimize_admin_init() {
293
  $link_pages = array( 'link.php', 'link-manager.php', 'link-add.php', 'edit-link-categories.php' );
294
  // pages for nav menu
295
  $nav_menu_pages = array( 'nav-menus.php' );
 
 
296
  // get admin color for current user
297
  $_mw_admin_color = get_user_option( 'admin_color' );
298
 
299
  foreach ( $user_roles as $role ) {
 
 
 
300
  $disabled_global_option_[$role] = _mw_adminimize_get_option_value(
301
  'mw_adminimize_disabled_global_option_' . $role . '_items'
302
  );
@@ -317,6 +322,9 @@ function _mw_adminimize_admin_init() {
317
  $disabled_nav_menu_option_[$role] = _mw_adminimize_get_option_value(
318
  'mw_adminimize_disabled_nav_menu_option_' . $role . '_items'
319
  );
 
 
 
320
  array_push( $disabled_metaboxes_post_all, $disabled_metaboxes_post_[$role] );
321
  array_push( $disabled_metaboxes_page_all, $disabled_metaboxes_page_[$role] );
322
  }
@@ -432,6 +440,9 @@ function _mw_adminimize_admin_init() {
432
  // set wp nav menu options
433
  if ( in_array( $pagenow, $nav_menu_pages ) )
434
  add_action( 'admin_head', '_mw_adminimize_set_nav_menu_option', 1 );
 
 
 
435
 
436
  $adminimizeoptions['mw_adminimize_default_menu'] = $menu;
437
  $adminimizeoptions['mw_adminimize_default_submenu'] = $submenu;
@@ -459,8 +470,10 @@ add_action( 'admin_init', '_mw_adminimize_textdomain' );
459
  add_action( 'admin_init', '_mw_adminimize_register_styles', 1 );
460
  add_action( 'admin_init', '_mw_adminimize_admin_init', 2 );
461
  add_action( 'init', '_mw_adminimize_init', 2 );
 
462
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
463
  add_action( 'network_admin_menu', '_mw_adminimize_add_settings_page' );
 
464
  add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
465
  add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
466
 
@@ -1059,10 +1072,53 @@ function _mw_adminimize_set_nav_menu_option() {
1059
  $_mw_adminimize_admin_head .= '<style type="text/css">' .
1060
  $nav_menu_options . ' {display: none !important;}</style>' . "\n";
1061
 
1062
- if ( $nav_menu_options)
1063
  echo $_mw_adminimize_admin_head;
1064
  }
1065
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1066
 
1067
  /**
1068
  * small user-info
@@ -1083,18 +1139,25 @@ function _mw_adminimize_small_user_info() {
1083
  /**
1084
  * include options-page in wp-admin
1085
  */
 
1086
  require_once( 'adminimize_page.php' );
 
1087
  require_once( 'inc-setup/dashboard.php' );
1088
- require_once( 'inc-setup/admin-bar.php' );
 
 
 
1089
  require_once( 'inc-setup/admin-footer.php' );
1090
  // globale settings
1091
  //require_once( 'inc-options/settings_notice.php' );
1092
-
1093
-
 
 
1094
  /**
1095
  * @version WP 2.8
1096
  * Add action link(s) to plugins page
1097
- *
1098
  * @param $links, $file
1099
  * @return $links
1100
  */
@@ -1192,9 +1255,20 @@ function _mw_adminimize_get_option_value( $key) {
1192
  function _mw_adminimize_update() {
1193
 
1194
  $user_roles = _mw_adminimize_get_all_user_roles();
1195
- $args = array( 'public' => TRUE, '_builtin' => FALSE );
1196
  $post_types = get_post_types( $args );
1197
 
 
 
 
 
 
 
 
 
 
 
 
1198
  if ( isset( $_POST['_mw_adminimize_user_info'] ) ) {
1199
  $adminimizeoptions['_mw_adminimize_user_info'] = strip_tags(stripslashes( $_POST['_mw_adminimize_user_info'] ) );
1200
  } else {
@@ -1296,6 +1370,8 @@ function _mw_adminimize_update() {
1296
 
1297
  // global_options, metaboxes update
1298
  foreach ( $user_roles as $role ) {
 
 
1299
  if ( isset( $_POST['mw_adminimize_disabled_global_option_' . $role . '_items'] ) ) {
1300
  $adminimizeoptions['mw_adminimize_disabled_global_option_' . $role . '_items'] = $_POST['mw_adminimize_disabled_global_option_' . $role . '_items'];
1301
  } else {
@@ -1335,6 +1411,13 @@ function _mw_adminimize_update() {
1335
  $adminimizeoptions['mw_adminimize_disabled_nav_menu_option_' . $role . '_items'] = array();
1336
  }
1337
 
 
 
 
 
 
 
 
1338
  // wp dashboard option
1339
  if ( isset( $_POST['mw_adminimize_disabled_dashboard_option_' . $role . '_items'] ) ) {
1340
  $adminimizeoptions['mw_adminimize_disabled_dashboard_option_' . $role . '_items'] = $_POST['mw_adminimize_disabled_dashboard_option_' . $role . '_items'];
@@ -1423,6 +1506,19 @@ function _mw_adminimize_update() {
1423
  $adminimizeoptions['_mw_adminimize_own_nav_menu_options'] = 0;
1424
  }
1425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1426
  // own dashboard options
1427
  if ( isset( $_POST['_mw_adminimize_own_dashboard_values'] ) ) {
1428
  $adminimizeoptions['_mw_adminimize_own_dashboard_values'] = stripslashes( $_POST['_mw_adminimize_own_dashboard_values'] );
@@ -1444,7 +1540,7 @@ function _mw_adminimize_update() {
1444
  // update
1445
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
1446
  update_site_option( 'mw_adminimize', $adminimizeoptions );
1447
- else
1448
  update_option( 'mw_adminimize', $adminimizeoptions );
1449
 
1450
  $myErrors = new _mw_adminimize_message_class();
@@ -1473,11 +1569,12 @@ function _mw_adminimize_install() {
1473
  $adminimizeoptions = array();
1474
 
1475
  foreach ( $user_roles as $role ) {
1476
- $adminimizeoptions['mw_adminimize_disabled_menu_' . $role . '_items'] = array();
1477
- $adminimizeoptions['mw_adminimize_disabled_submenu_' . $role . '_items'] = array();
1478
- $adminimizeoptions['mw_adminimize_disabled_global_option_' . $role . '_items'] = array();
1479
- $adminimizeoptions['mw_adminimize_disabled_metaboxes_post_' . $role . '_items'] = array();
1480
- $adminimizeoptions['mw_adminimize_disabled_metaboxes_page_' . $role . '_items'] = array();
 
1481
  $args = array( 'public' => TRUE, '_builtin' => FALSE );
1482
  foreach ( get_post_types( $args ) as $post_type ) {
1483
  $adminimizeoptions['mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items'] = array();
@@ -1533,7 +1630,7 @@ function _mw_adminimize_import() {
1533
  $str_ziel = WP_CONTENT_DIR . '/' . $_FILES['datei']['name'];
1534
  // transfer
1535
  move_uploaded_file( $_FILES['datei']['tmp_name'], $str_ziel );
1536
- // access authorisation
1537
  chmod( $str_ziel, 0644);
1538
  // SQL import
1539
  ini_set( 'default_socket_timeout', 120);
@@ -1561,5 +1658,3 @@ function _mw_adminimize_import() {
1561
  $myErrors->get_error( '_mw_adminimize_import' ) . '</p></div>';
1562
  echo $myErrors;
1563
  }
1564
-
1565
- ?>
7
  /**
8
  * Plugin Name: Adminimize
9
  * Plugin URI: http://bueltge.de/wordpress-admin-theme-adminimize/674/
10
+ * Text Domain: adminimize
11
  * Domain Path: /languages
12
  * Description: Visually compresses the administratrive meta-boxes so that more admin page content can be initially seen. The plugin that lets you hide 'unnecessary' items from the WordPress administration menu, for alle roles of your install. You can also hide post meta controls on the edit-area to simplify the interface. It is possible to simplify the admin in different for all roles.
13
  * Author: Frank B&uuml;ltge
14
  * Author URI: http://bueltge.de/
15
+ * Version: 1.8.1
16
  * License: GPLv3
17
  */
18
 
293
  $link_pages = array( 'link.php', 'link-manager.php', 'link-add.php', 'edit-link-categories.php' );
294
  // pages for nav menu
295
  $nav_menu_pages = array( 'nav-menus.php' );
296
+ // widget pages
297
+ $widget_pages = array( 'widgets.php' );
298
  // get admin color for current user
299
  $_mw_admin_color = get_user_option( 'admin_color' );
300
 
301
  foreach ( $user_roles as $role ) {
302
+ $disabled_global_option_[$role] = _mw_adminimize_get_option_value(
303
+ 'mw_adminimize_disabled_admin_bar_' . $role . '_items'
304
+ );
305
  $disabled_global_option_[$role] = _mw_adminimize_get_option_value(
306
  'mw_adminimize_disabled_global_option_' . $role . '_items'
307
  );
322
  $disabled_nav_menu_option_[$role] = _mw_adminimize_get_option_value(
323
  'mw_adminimize_disabled_nav_menu_option_' . $role . '_items'
324
  );
325
+ $disabled_widget_option_[$role] = _mw_adminimize_get_option_value(
326
+ 'mw_adminimize_disabled_widget_option_' . $role . '_items'
327
+ );
328
  array_push( $disabled_metaboxes_post_all, $disabled_metaboxes_post_[$role] );
329
  array_push( $disabled_metaboxes_page_all, $disabled_metaboxes_page_[$role] );
330
  }
440
  // set wp nav menu options
441
  if ( in_array( $pagenow, $nav_menu_pages ) )
442
  add_action( 'admin_head', '_mw_adminimize_set_nav_menu_option', 1 );
443
+ // set widget options
444
+ if ( in_array( $pagenow, $widget_pages ) )
445
+ add_action( 'admin_head', '_mw_adminimize_set_widget_option', 1 );
446
 
447
  $adminimizeoptions['mw_adminimize_default_menu'] = $menu;
448
  $adminimizeoptions['mw_adminimize_default_submenu'] = $submenu;
470
  add_action( 'admin_init', '_mw_adminimize_register_styles', 1 );
471
  add_action( 'admin_init', '_mw_adminimize_admin_init', 2 );
472
  add_action( 'init', '_mw_adminimize_init', 2 );
473
+ /* maybe later
474
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
475
  add_action( 'network_admin_menu', '_mw_adminimize_add_settings_page' );
476
+ */
477
  add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
478
  add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
479
 
1072
  $_mw_adminimize_admin_head .= '<style type="text/css">' .
1073
  $nav_menu_options . ' {display: none !important;}</style>' . "\n";
1074
 
1075
+ if ( $nav_menu_options )
1076
  echo $_mw_adminimize_admin_head;
1077
  }
1078
 
1079
+ /**
1080
+ * Remove areas in Widget Settings
1081
+ */
1082
+ function _mw_adminimize_set_widget_option() {
1083
+
1084
+ // exclude super admin
1085
+ if ( _mw_adminimize_exclude_super_admin() )
1086
+ return NULL;
1087
+
1088
+ $user_roles = _mw_adminimize_get_all_user_roles();
1089
+
1090
+ $_mw_adminimize_admin_head = '';
1091
+
1092
+ foreach ( $user_roles as $role ) {
1093
+ $disabled_widget_option_[$role] = _mw_adminimize_get_option_value(
1094
+ 'mw_adminimize_disabled_widget_option_' . $role . '_items'
1095
+ );
1096
+ }
1097
+
1098
+ foreach ( $user_roles as $role ) {
1099
+ if ( ! isset( $disabled_widget_option_[$role]['0'] ) )
1100
+ $disabled_widget_option_[$role]['0'] = '';
1101
+ }
1102
+
1103
+ // new 1.7.8
1104
+ foreach ( $user_roles as $role ) {
1105
+ $user = wp_get_current_user();
1106
+ if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
1107
+ if ( current_user_can( $role )
1108
+ && isset( $disabled_widget_option_[$role] )
1109
+ && is_array( $disabled_widget_option_[$role] )
1110
+ ) {
1111
+ $widget_options = implode( ',', $disabled_widget_option_[$role] );
1112
+ }
1113
+ }
1114
+ }
1115
+ //remove_meta_box( $id, 'nav-menus', 'side' );
1116
+ $_mw_adminimize_admin_head .= '<style type="text/css">' .
1117
+ $widget_options . ' {display: none !important;}</style>' . "\n";
1118
+
1119
+ if ( $widget_options )
1120
+ echo $_mw_adminimize_admin_head;
1121
+ }
1122
 
1123
  /**
1124
  * small user-info
1139
  /**
1140
  * include options-page in wp-admin
1141
  */
1142
+ // inc. settings page
1143
  require_once( 'adminimize_page.php' );
1144
+ // dashbaord options
1145
  require_once( 'inc-setup/dashboard.php' );
1146
+ // widget options
1147
+ require_once( 'inc-setup/widget.php' );
1148
+ // remove admin bar
1149
+ require_once( 'inc-setup/remove-admin-bar.php' );
1150
  require_once( 'inc-setup/admin-footer.php' );
1151
  // globale settings
1152
  //require_once( 'inc-options/settings_notice.php' );
1153
+ // admin bar helper, setup
1154
+ require_once( 'inc-setup/admin-bar-items.php' );
1155
+ // meta boxes helper, setup
1156
+ //require_once( 'inc-setup/meta-boxes.php' );
1157
  /**
1158
  * @version WP 2.8
1159
  * Add action link(s) to plugins page
1160
+ *
1161
  * @param $links, $file
1162
  * @return $links
1163
  */
1255
  function _mw_adminimize_update() {
1256
 
1257
  $user_roles = _mw_adminimize_get_all_user_roles();
1258
+ $args = array( 'public' => TRUE, '_builtin' => FALSE );
1259
  $post_types = get_post_types( $args );
1260
 
1261
+ $adminimizeoptions['mw_adminimize_admin_bar_nodes'] = _mw_adminimize_get_option_value( 'mw_adminimize_admin_bar_nodes' );
1262
+ // admin bar options
1263
+ foreach ( $user_roles as $role ) {
1264
+ // admin abr options
1265
+ if ( isset( $_POST['mw_adminimize_disabled_admin_bar_' . $role . '_items'] ) ) {
1266
+ $adminimizeoptions['mw_adminimize_disabled_admin_bar_' . $role . '_items'] = $_POST['mw_adminimize_disabled_admin_bar_' . $role . '_items'];
1267
+ } else {
1268
+ $adminimizeoptions['mw_adminimize_disabled_admin_bar_' . $role . '_items'] = array();
1269
+ }
1270
+ }
1271
+
1272
  if ( isset( $_POST['_mw_adminimize_user_info'] ) ) {
1273
  $adminimizeoptions['_mw_adminimize_user_info'] = strip_tags(stripslashes( $_POST['_mw_adminimize_user_info'] ) );
1274
  } else {
1370
 
1371
  // global_options, metaboxes update
1372
  foreach ( $user_roles as $role ) {
1373
+
1374
+ // global options
1375
  if ( isset( $_POST['mw_adminimize_disabled_global_option_' . $role . '_items'] ) ) {
1376
  $adminimizeoptions['mw_adminimize_disabled_global_option_' . $role . '_items'] = $_POST['mw_adminimize_disabled_global_option_' . $role . '_items'];
1377
  } else {
1411
  $adminimizeoptions['mw_adminimize_disabled_nav_menu_option_' . $role . '_items'] = array();
1412
  }
1413
 
1414
+ // widget options
1415
+ if ( isset( $_POST['mw_adminimize_disabled_widget_option_' . $role . '_items'] ) ) {
1416
+ $adminimizeoptions['mw_adminimize_disabled_widget_option_' . $role . '_items'] = $_POST['mw_adminimize_disabled_widget_option_' . $role . '_items'];
1417
+ } else {
1418
+ $adminimizeoptions['mw_adminimize_disabled_widget_option_' . $role . '_items'] = array();
1419
+ }
1420
+
1421
  // wp dashboard option
1422
  if ( isset( $_POST['mw_adminimize_disabled_dashboard_option_' . $role . '_items'] ) ) {
1423
  $adminimizeoptions['mw_adminimize_disabled_dashboard_option_' . $role . '_items'] = $_POST['mw_adminimize_disabled_dashboard_option_' . $role . '_items'];
1506
  $adminimizeoptions['_mw_adminimize_own_nav_menu_options'] = 0;
1507
  }
1508
 
1509
+ // widget options
1510
+ if ( isset( $_POST['_mw_adminimize_own_widget_values'] ) ) {
1511
+ $adminimizeoptions['_mw_adminimize_own_widget_values'] = stripslashes( $_POST['_mw_adminimize_own_widget_values'] );
1512
+ } else {
1513
+ $adminimizeoptions['_mw_adminimize_own_widget_values'] = 0;
1514
+ }
1515
+
1516
+ if ( isset( $_POST['_mw_adminimize_own_widget_options'] ) ) {
1517
+ $adminimizeoptions['_mw_adminimize_own_widget_options'] = stripslashes( $_POST['_mw_adminimize_own_widget_options'] );
1518
+ } else {
1519
+ $adminimizeoptions['_mw_adminimize_own_widget_options'] = 0;
1520
+ }
1521
+
1522
  // own dashboard options
1523
  if ( isset( $_POST['_mw_adminimize_own_dashboard_values'] ) ) {
1524
  $adminimizeoptions['_mw_adminimize_own_dashboard_values'] = stripslashes( $_POST['_mw_adminimize_own_dashboard_values'] );
1540
  // update
1541
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
1542
  update_site_option( 'mw_adminimize', $adminimizeoptions );
1543
+ else
1544
  update_option( 'mw_adminimize', $adminimizeoptions );
1545
 
1546
  $myErrors = new _mw_adminimize_message_class();
1569
  $adminimizeoptions = array();
1570
 
1571
  foreach ( $user_roles as $role ) {
1572
+ $adminimizeoptions['mw_adminimize_disabled_menu_' . $role . '_items'] = array();
1573
+ $adminimizeoptions['mw_adminimize_disabled_submenu_' . $role . '_items'] = array();
1574
+ $adminimizeoptions['mw_adminimize_disabled_admin_bar_' . $role . '_items'] = array();
1575
+ $adminimizeoptions['mw_adminimize_disabled_global_option_' . $role . '_items'] = array();
1576
+ $adminimizeoptions['mw_adminimize_disabled_metaboxes_post_' . $role . '_items'] = array();
1577
+ $adminimizeoptions['mw_adminimize_disabled_metaboxes_page_' . $role . '_items'] = array();
1578
  $args = array( 'public' => TRUE, '_builtin' => FALSE );
1579
  foreach ( get_post_types( $args ) as $post_type ) {
1580
  $adminimizeoptions['mw_adminimize_disabled_metaboxes_' . $post_type . '_' . $role . '_items'] = array();
1630
  $str_ziel = WP_CONTENT_DIR . '/' . $_FILES['datei']['name'];
1631
  // transfer
1632
  move_uploaded_file( $_FILES['datei']['tmp_name'], $str_ziel );
1633
+ // access authorization
1634
  chmod( $str_ziel, 0644);
1635
  // SQL import
1636
  ini_set( 'default_socket_timeout', 120);
1658
  $myErrors->get_error( '_mw_adminimize_import' ) . '</p></div>';
1659
  echo $myErrors;
1660
  }
 
 
adminimize_admin_bar.php.new DELETED
@@ -1,104 +0,0 @@
1
- <?php
2
- /**
3
- * setup admin bar
4
- */
5
-
6
- // test
7
- function _fb_filter_admin_bar() {
8
- global $wp_admin_bar;
9
-
10
- //get array with userroles
11
- $user_roles = get_all_user_roles();
12
- $user_roles_names = get_all_user_roles_names();
13
- $disabled_item_adm = '';
14
- $disabled_item_adm_hint = '';
15
-
16
- foreach ($user_roles as $role) {
17
- $disabled_menu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_menu_'. $role .'_items');
18
- $disabled_submenu_[$role] = _mw_adminimize_getOptionValue('mw_adminimize_disabled_submenu_'. $role .'_items');
19
- }
20
- ?>
21
- <div id="poststuff" class="ui-sortable meta-box-sortables">
22
- <div class="postbox">
23
- <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
24
- <h3 class="hndle" id="config_menu"><?php _e('WP Admin Bar Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
25
- <div class="inside">
26
- <br class="clear" />
27
-
28
- <table summary="config_menu" class="widefat">
29
- <thead>
30
- <tr>
31
- <th><?php _e('Admin Bar options - Menu, <span style=\"font-weight: 400;\">Submenu</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
32
- <?php foreach ($user_roles_names as $role_name) { ?>
33
- <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
34
- <?php } ?>
35
- </tr>
36
- </thead>
37
- <tbody>
38
- <?php
39
- foreach ($wp_admin_bar->menu as $menu_item_id => $item) {
40
- if ( isset($item) && $item != '' ) {
41
-
42
- $x = 0;
43
- $class = '';
44
-
45
- foreach($user_roles as $role) {
46
- // checkbox checked
47
- if ( isset( $disabled_menu_[$role]) && in_array($menu_item_id, $disabled_menu_[$role]) ) {
48
- $checked_user_role_[$role] = ' checked="checked"';
49
- } else {
50
- $checked_user_role_[$role] = '';
51
- }
52
- }
53
-
54
- echo '<tr class="form-invalid">' . "\n";
55
- echo "\t" . '<th>' . $item['title'] . ' <span style="color:#ccc; font-weight:400;">(' . $menu_item_id . ')</span> </th>';
56
- foreach ($user_roles as $role) {
57
- echo "\t" . '<td class="num">' .
58
- '<input id="check_menu'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_menu_'. $role .'_items[]" value="' . $item['title'] . '" />'
59
- . '</td>' . "\n";
60
- }
61
- echo '</tr>';
62
-
63
- if ( !isset($item['children']) )
64
- continue;
65
-
66
- // submenu items
67
- foreach ( $item['children'] as $subitem ) {
68
- $class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
69
- echo '<tr' . $class . '>' . "\n";
70
- foreach ($user_roles as $role) {
71
- if ( isset($disabled_submenu_[$role]) )
72
- $checked_user_role_[$role] = ( in_array($subitem['id'], $disabled_submenu_[$role] ) ) ? ' checked="checked"' : '';
73
- }
74
- echo '<td> &mdash; ' . $subitem['title'] . ' <span style="color:#ccc; font-weight: 400;">(' . $subitem['id'] . ')</span> </td>' . "\n";
75
- foreach ($user_roles as $role) {
76
- echo '<td class="num">
77
- <input id="check_menu'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_submenu_'. $role .'_items[]" value="' . $subitem['id'] . '" />' .
78
- '</td>' . "\n";
79
- }
80
- echo '</tr>' . "\n";
81
- $x++;
82
- }
83
- $x++;
84
- }
85
- }
86
- ?>
87
- </tbody>
88
- </table>
89
-
90
- <p id="submitbutton">
91
- <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
92
- </p>
93
- <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
94
-
95
- </div>
96
- </div>
97
- </div>
98
-
99
- <?php
100
- //$wp_admin_bar->remove_menu('edit-my-profile');
101
- }
102
- add_action('wp_before_admin_bar_render', '_fb_filter_admin_bar');
103
-
104
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adminimize_page.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
- * @package Adminimize
4
  * @subpackage Settings page
5
- * @author Frank Bültge
6
  */
7
  if ( ! function_exists( 'add_action' ) ) {
8
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
@@ -15,8 +15,6 @@ if ( isset( $_GET['_mw_adminimize_export'] ) ) {
15
  die();
16
  }
17
 
18
- //include( 'adminimize_admin_bar.php' );
19
-
20
  function _mw_adminimize_options() {
21
  global $wpdb, $_wp_admin_css_colors, $wp_version, $wp_roles, $table_prefix;
22
 
@@ -117,9 +115,11 @@ function _mw_adminimize_options() {
117
  // Backend Options for all roles
118
  require_once( 'inc-options/minimenu.php' );
119
  ?>
120
-
121
  <form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo esc_attr( $_GET['page'] );?>" >
122
  <?php
 
 
 
123
  // Backend Options for all roles
124
  require_once('inc-options/backend_options.php');
125
 
@@ -143,7 +143,11 @@ function _mw_adminimize_options() {
143
  require_once('inc-options/write_cp_options.php');
144
 
145
  // Links Options
146
- require_once('inc-options/links_options.php');
 
 
 
 
147
 
148
  // WP Nav Menu Options
149
  require_once('inc-options/wp_nav_menu_options.php');
1
  <?php
2
  /**
3
+ * @package Adminimize
4
  * @subpackage Settings page
5
+ * @author Frank Bültge
6
  */
7
  if ( ! function_exists( 'add_action' ) ) {
8
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
15
  die();
16
  }
17
 
 
 
18
  function _mw_adminimize_options() {
19
  global $wpdb, $_wp_admin_css_colors, $wp_version, $wp_roles, $table_prefix;
20
 
115
  // Backend Options for all roles
116
  require_once( 'inc-options/minimenu.php' );
117
  ?>
 
118
  <form name="backend_option" method="post" id="_mw_adminimize_options" action="?page=<?php echo esc_attr( $_GET['page'] );?>" >
119
  <?php
120
+ // Admin Bar options
121
+ require_once('inc-options/admin_bar.php');
122
+
123
  // Backend Options for all roles
124
  require_once('inc-options/backend_options.php');
125
 
143
  require_once('inc-options/write_cp_options.php');
144
 
145
  // Links Options
146
+ if ( 0 != get_option( 'link_manager_enabled' ) )
147
+ require_once('inc-options/links_options.php');
148
+
149
+ // Widget options
150
+ require_once('inc-options/widget_options.php');
151
 
152
  // WP Nav Menu Options
153
  require_once('inc-options/wp_nav_menu_options.php');
css/mw_cat_full.css CHANGED
@@ -3,4 +3,6 @@
3
  */
4
  #categorydiv div.tabs-panel, #linkcategorydiv div.tabs-panel {
5
  height: auto !important;
 
 
6
  }
3
  */
4
  #categorydiv div.tabs-panel, #linkcategorydiv div.tabs-panel {
5
  height: auto !important;
6
+ max-height: 100% !important;
7
+ overflow: visible !important;
8
  }
inc-options/admin_bar.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Adminimize
4
+ * @subpackage Admin Bar Options, settings page
5
+ * @author Frank Bültge
6
+ * @since 1.8.1 01/10/2013
7
+ */
8
+ if ( ! function_exists( 'add_action' ) ) {
9
+ echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
+ exit;
11
+ }
12
+
13
+ if ( ! isset( $wp_admin_bar ) )
14
+ $wp_admin_bar = '';
15
+
16
+ ?>
17
+ <div id="poststuff" class="ui-sortable meta-box-sortables">
18
+ <div class="postbox">
19
+ <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
20
+ <h3 class="hndle" id="admin_bar_options"><?php _e('Admin Bar options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
21
+ <div class="inside">
22
+ <br class="clear" />
23
+
24
+ <table summary="config_widget" class="widefat">
25
+ <thead>
26
+ <tr>
27
+ <th><?php _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
28
+ <?php
29
+ foreach ($user_roles_names as $role_name) { ?>
30
+ <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
31
+ <?php } ?>
32
+ </tr>
33
+ </thead>
34
+
35
+ <tbody>
36
+ <?php
37
+ foreach ( $user_roles as $role ) {
38
+ $disabled_admin_bar_option_[$role] = _mw_adminimize_get_option_value(
39
+ 'mw_adminimize_disabled_admin_bar_' . $role .'_items'
40
+ );
41
+ }
42
+
43
+ $x = 0;
44
+ // add items to array for select
45
+ $admin_bar_items = _mw_adminimize_get_admin_bar_items();
46
+ foreach ( $admin_bar_items as $key => $value ) {
47
+ //var_dump($admin_bar_items);exit;
48
+
49
+ $is_parent = ! empty( $value->parent );
50
+ $has_link = ! empty( $node->href );
51
+
52
+ $item_class = ' class="form-invalid"';
53
+ $item_string = '';
54
+ if ( $is_parent ) {
55
+ $item_class = '';
56
+ $item_string = ' &mdash; ';
57
+ }
58
+
59
+ $checked_user_role_ = array();
60
+ foreach ( $user_roles as $role ) {
61
+ $checked_user_role_[$role] = ( isset( $disabled_admin_bar_option_[$role] ) &&
62
+ in_array( $key, $disabled_admin_bar_option_[$role] )
63
+ ) ? ' checked="checked"' : '';
64
+ }
65
+
66
+ echo '<tr' . $item_class . '>' . "\n";
67
+ echo '<td>' . $item_string . strip_tags( $value->title )
68
+ . ' <span style="color:#ccc; font-weight: 400;">('
69
+ . $key . ')</span> </td>' . "\n";
70
+ foreach ( $user_roles as $role ) {
71
+ echo '<td class="num"><input id="check_post'. $role . $x .'" type="checkbox"'
72
+ . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_admin_bar_'
73
+ . $role .'_items[]" value="' . $key . '" /></td>' . "\n";
74
+ }
75
+ echo '</tr>' . "\n";
76
+ $x ++;
77
+ }
78
+ ?>
79
+ </tbody>
80
+ </table>
81
+
82
+ <p id="submitbutton">
83
+ <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
84
+ <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
85
+ </p>
86
+ <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
87
+
88
+ </div>
89
+ </div>
90
+ </div>
inc-options/backend_options.php CHANGED
@@ -21,7 +21,7 @@ if ( ! function_exists( 'add_action' ) ) {
21
  <br class="clear" />
22
  <table summary="config" class="widefat">
23
  <tbody>
24
- <?php if ( function_exists('is_super_admin') ) { ?>
25
  <!--
26
  <tr valign="top" class="form-invalid">
27
  <td><?php _e( 'Use Global Settings', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
@@ -87,6 +87,9 @@ if ( ! function_exists( 'add_action' ) ) {
87
  </select> <?php _e('The Footer-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
88
  </td>
89
  </tr>
 
 
 
90
  <tr valign="top">
91
  <td><?php _e('Header', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
92
  <td>
@@ -97,6 +100,7 @@ if ( ! function_exists( 'add_action' ) ) {
97
  </select> <?php _e('The Header-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
98
  </td>
99
  </tr>
 
100
  <tr valign="top">
101
  <td><?php _e('Timestamp', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
102
  <td>
@@ -107,6 +111,9 @@ if ( ! function_exists( 'add_action' ) ) {
107
  </select> <?php _e('Opens the post timestamp editing fields without you having to click the "Edit" link every time.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
108
  </td>
109
  </tr>
 
 
 
110
  <tr valign="top">
111
  <td><?php _e('Thickbox FullScreen', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
112
  <td>
@@ -127,6 +134,7 @@ if ( ! function_exists( 'add_action' ) ) {
127
  </select> <?php _e('Disable the flashuploader and users use only the standard uploader.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
128
  </td>
129
  </tr>
 
130
  <tr valign="top">
131
  <td><?php _e('Category Height', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
132
  <td>
21
  <br class="clear" />
22
  <table summary="config" class="widefat">
23
  <tbody>
24
+ <?php if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) && function_exists('is_super_admin') ) { ?>
25
  <!--
26
  <tr valign="top" class="form-invalid">
27
  <td><?php _e( 'Use Global Settings', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
87
  </select> <?php _e('The Footer-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
88
  </td>
89
  </tr>
90
+ <?php
91
+ // not usable from WP 3.5
92
+ if ( version_compare( $wp_version, '3.5alpha', '<' ) ) { ?>
93
  <tr valign="top">
94
  <td><?php _e('Header', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
95
  <td>
100
  </select> <?php _e('The Header-area can hide, include all links and details.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
101
  </td>
102
  </tr>
103
+ <?php } // end if < wp 3-6 ?>
104
  <tr valign="top">
105
  <td><?php _e('Timestamp', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
106
  <td>
111
  </select> <?php _e('Opens the post timestamp editing fields without you having to click the "Edit" link every time.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
112
  </td>
113
  </tr>
114
+ <?php
115
+ // not usable from WP 3.5
116
+ if ( version_compare( $wp_version, '3.5alpha', '<' ) ) { ?>
117
  <tr valign="top">
118
  <td><?php _e('Thickbox FullScreen', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
119
  <td>
134
  </select> <?php _e('Disable the flashuploader and users use only the standard uploader.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
135
  </td>
136
  </tr>
137
+ <?php } // end if < wp 3-6 ?>
138
  <tr valign="top">
139
  <td><?php _e('Category Height', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
140
  <td>
inc-options/minimenu.php CHANGED
@@ -10,6 +10,7 @@ if ( ! function_exists( 'add_action' ) ) {
10
  }
11
 
12
  $screen = get_current_screen();
 
13
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MW_ADMIN_FILE ) ) )
14
  $message = __( 'Network' );
15
  ?>
@@ -26,6 +27,11 @@ if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MW_ADMIN_F
26
  <tr>
27
  <td class="row-title"><a href="#about"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
28
  </tr>
 
 
 
 
 
29
  <tr class="alternate">
30
  <td class="row-title"><a href="#backend_options"><?php _e('Backend Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
31
  </tr>
@@ -60,10 +66,18 @@ if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MW_ADMIN_F
60
  <?php
61
  }
62
  }
 
 
 
63
  ?>
64
  <tr>
65
  <td class="row-title"><a href="#links_options"><?php _e('Links options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
66
  </tr>
 
 
 
 
 
67
  <tr class="alternate">
68
  <td class="row-title"><a href="#nav_menu_options"><?php _e('WP Nav Menu', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
69
  </tr>
@@ -103,7 +117,9 @@ if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MW_ADMIN_F
103
  </ul>
104
  <div class="form-invalid" style="padding:.3em 1em;">
105
  <p><span style="font-size: 35px; float: left; margin: 10px 3px 0 0;">&#x261D;</span><?php _e( 'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.<br /><span style="font-weight: 300;">To view your changes to the menu you need to navigate away from the Adminimize settings page.</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
 
106
  <p><?php _e( 'You have to activated the Plugin for your Multisite Network. Your settings works now on all blogs in the network. Please set the settings only in one blog, there you have all active menu items and plugins. If you update the settings then write the plugin new settings in dependence of the blog where you put, save the settings.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
 
107
  </div>
108
  <p>&copy; Copyright 2008 - <?php echo date('Y'); ?> <a href="http://bueltge.de">Frank B&uuml;ltge</a></p>
109
  <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
10
  }
11
 
12
  $screen = get_current_screen();
13
+ $message = '';
14
  if ( is_multisite() && is_plugin_active_for_network( plugin_basename( MW_ADMIN_FILE ) ) )
15
  $message = __( 'Network' );
16
  ?>
27
  <tr>
28
  <td class="row-title"><a href="#about"><?php _e('About the plugin', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
29
  </tr>
30
+
31
+ <tr class="alternate">
32
+ <td class="row-title"><a href="#admin_bar_options"><?php _e('Admin Bar Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
33
+ </tr>
34
+
35
  <tr class="alternate">
36
  <td class="row-title"><a href="#backend_options"><?php _e('Backend Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
37
  </tr>
66
  <?php
67
  }
68
  }
69
+
70
+ // check for active links, acive since WP 3.5
71
+ if ( 0 != get_option( 'link_manager_enabled' ) ) {
72
  ?>
73
  <tr>
74
  <td class="row-title"><a href="#links_options"><?php _e('Links options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
75
  </tr>
76
+ <?php } ?>
77
+
78
+ <tr class="alternate">
79
+ <td class="row-title"><a href="#widget_options"><?php _e('Widgets', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
80
+ </tr>
81
  <tr class="alternate">
82
  <td class="row-title"><a href="#nav_menu_options"><?php _e('WP Nav Menu', FB_ADMINIMIZE_TEXTDOMAIN ); ?></a></td>
83
  </tr>
117
  </ul>
118
  <div class="form-invalid" style="padding:.3em 1em;">
119
  <p><span style="font-size: 35px; float: left; margin: 10px 3px 0 0;">&#x261D;</span><?php _e( 'Please note: The Adminimize settings page ignores the Menu Options below and displays the menu with all entries.<br /><span style="font-weight: 300;">To view your changes to the menu you need to navigate away from the Adminimize settings page.</span>', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
120
+ <?php if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) ) { ?>
121
  <p><?php _e( 'You have to activated the Plugin for your Multisite Network. Your settings works now on all blogs in the network. Please set the settings only in one blog, there you have all active menu items and plugins. If you update the settings then write the plugin new settings in dependence of the blog where you put, save the settings.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></p>
122
+ <?php } ?>
123
  </div>
124
  <p>&copy; Copyright 2008 - <?php echo date('Y'); ?> <a href="http://bueltge.de">Frank B&uuml;ltge</a></p>
125
  <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
inc-options/widget_options.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Adminimize
4
+ * @subpackage Widget Options, settings page
5
+ * @author Frank Bültge
6
+ * @since 1.8.1 01/10/2013
7
+ */
8
+ if ( ! function_exists( 'add_action' ) ) {
9
+ echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
+ exit;
11
+ }
12
+ ?>
13
+ <div id="poststuff" class="ui-sortable meta-box-sortables">
14
+ <div class="postbox">
15
+ <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
16
+ <h3 class="hndle" id="widget_options"><?php _e('Widget options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
17
+ <div class="inside">
18
+ <br class="clear" />
19
+
20
+ <table summary="config_widget" class="widefat">
21
+ <thead>
22
+ <tr>
23
+ <th><?php _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
24
+ <?php
25
+ foreach ($user_roles_names as $role_name) { ?>
26
+ <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
27
+ <?php } ?>
28
+ </tr>
29
+ </thead>
30
+
31
+ <tbody>
32
+ <?php
33
+ foreach ($user_roles as $role) {
34
+ $disabled_widget_option_[$role] = _mw_adminimize_get_option_value('mw_adminimize_disabled_widget_option_'. $role .'_items');
35
+ }
36
+
37
+ $widget_options = array(
38
+ '#contextual-help-link-wrap',
39
+ '#screen-options-link-wrap',
40
+ '#available-widgets',
41
+ '.inactive-sidebar.orphan-sidebar',
42
+ '.inactive-sidebar',
43
+ );
44
+
45
+ $widget_options_names = array(
46
+ __( 'Help', FB_ADMINIMIZE_TEXTDOMAIN ),
47
+ __( 'Screen Options' ),
48
+ __( 'Available Widgets' ),
49
+ __( 'Inactive Sidebar (not used)' ),
50
+ __( 'Inactive Widgets' ),
51
+ );
52
+
53
+ $registered_sidebars = _mw_adminimize_get_registered_sidebars();
54
+ foreach ($registered_sidebars as $key => $value) {
55
+
56
+ array_push( $widget_options, $key );
57
+ array_push( $widget_options_names, $value[ 'name' ] );
58
+ }
59
+
60
+ // get registeres widgets
61
+ $registered_widgets = _mw_adminimize_get_all_widgets();
62
+ foreach ( $registered_widgets as $key => $value ) {
63
+
64
+ array_push( $widget_options, $key );
65
+ array_push( $widget_options_names, $value->name );
66
+ }
67
+
68
+ $_mw_adminimize_own_widget_values = _mw_adminimize_get_option_value('_mw_adminimize_own_widget_values');
69
+ $_mw_adminimize_own_widget_values = preg_split( "/\r\n/", $_mw_adminimize_own_widget_values );
70
+ foreach ( (array) $_mw_adminimize_own_widget_values as $key => $_mw_adminimize_own_widget_value ) {
71
+ $_mw_adminimize_own_widget_value = trim($_mw_adminimize_own_widget_value);
72
+ array_push( $widget_options, $_mw_adminimize_own_widget_value );
73
+ }
74
+
75
+ $_mw_adminimize_own_widget_options = _mw_adminimize_get_option_value('_mw_adminimize_own_widget_options');
76
+ $_mw_adminimize_own_widget_options = preg_split( "/\r\n/", $_mw_adminimize_own_widget_options );
77
+ foreach ( (array) $_mw_adminimize_own_widget_options as $key => $_mw_adminimize_own_widget_option ) {
78
+ $_mw_adminimize_own_widget_option = trim($_mw_adminimize_own_widget_option);
79
+ array_push($widget_options_names, $_mw_adminimize_own_widget_option);
80
+ }
81
+
82
+ $x = 0;
83
+ foreach ($widget_options as $index => $widget_option) {
84
+ if ( $widget_option != '') {
85
+ $checked_user_role_ = array();
86
+ foreach ($user_roles as $role) {
87
+ $checked_user_role_[$role] = ( isset($disabled_widget_option_[$role]) && in_array($widget_option, $disabled_widget_option_[$role]) ) ? ' checked="checked"' : '';
88
+ }
89
+ echo '<tr>' . "\n";
90
+ echo '<td>' . $widget_options_names[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $widget_option . ')</span> </td>' . "\n";
91
+ foreach ($user_roles as $role) {
92
+ echo '<td class="num"><input id="check_post'. $role . $x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_widget_option_'. $role .'_items[]" value="' . $widget_option . '" /></td>' . "\n";
93
+ }
94
+ echo '</tr>' . "\n";
95
+ $x++;
96
+ }
97
+ }
98
+ ?>
99
+ </tbody>
100
+ </table>
101
+
102
+ <?php
103
+ //your own global options
104
+ ?>
105
+ <br style="margin-top: 10px;" />
106
+ <table summary="config_edit_post" class="widefat">
107
+ <thead>
108
+ <tr>
109
+ <th><?php _e('Your own Widget options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
110
+ <th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
111
+ </tr>
112
+ </thead>
113
+
114
+ <tbody>
115
+ <tr valign="top">
116
+ <td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
117
+ </tr>
118
+ <tr valign="top">
119
+ <td>
120
+ <textarea name="_mw_adminimize_own_widget_options" cols="60" rows="3" id="_mw_adminimize_own_widget_options" style="width: 95%;" ><?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_widget_options'); ?></textarea>
121
+ <br />
122
+ <?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
123
+ </td>
124
+ <td>
125
+ <textarea class="code" name="_mw_adminimize_own_widget_values" cols="60" rows="3" id="_mw_adminimize_own_widget_values" style="width: 95%;" ><?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_widget_values'); ?></textarea>
126
+ <br />
127
+ <?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
128
+ </td>
129
+ </tr>
130
+ </tbody>
131
+ </table>
132
+
133
+ <p id="submitbutton">
134
+ <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
135
+ <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
136
+ </p>
137
+ <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
138
+
139
+ </div>
140
+ </div>
141
+ </div>
inc-setup/admin-bar-items.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Adminimize
4
+ * @subpackage Admin Bar Items
5
+ * @author Frank Bültge
6
+ */
7
+
8
+ if ( ! function_exists( 'add_action' ) ) {
9
+ echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
+ exit;
11
+ }
12
+
13
+ add_action( 'wp_before_admin_bar_render', '_mw_adminimize_get_admin_bar_nodes' );
14
+ /**
15
+ * Get all admin bar items and write in a options of Adminimize settings array
16
+ *
17
+ * @since 1.8.1 01/10/2013
18
+ * @return void
19
+ */
20
+ function _mw_adminimize_get_admin_bar_nodes() {
21
+
22
+ // Update only on Adminimize Settings page
23
+ if ( isset( $GLOBALS['current_screen']->base ) &&
24
+ 'settings_page_adminimize/adminimize' !== $GLOBALS['current_screen']->base
25
+ )
26
+ return NULL;
27
+
28
+ global $wp_admin_bar;
29
+ // @see: http://codex.wordpress.org/Function_Reference/get_nodes
30
+ $all_toolbar_nodes = $wp_admin_bar->get_nodes();
31
+
32
+ if ( $all_toolbar_nodes ) {
33
+ // get all options
34
+ $adminimizeoptions = get_option( 'mw_adminimize' );
35
+ // add admin bar array
36
+ $adminimizeoptions['mw_adminimize_admin_bar_nodes'] = $all_toolbar_nodes;
37
+
38
+ // update options
39
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
40
+ update_site_option( 'mw_adminimize', $adminimizeoptions );
41
+ else
42
+ update_option( 'mw_adminimize', $adminimizeoptions );
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Get all admin bar items from settings
48
+ *
49
+ * @since 1.8.1 01/10/2013
50
+ * @return void
51
+ */
52
+ function _mw_adminimize_get_admin_bar_items() {
53
+
54
+ $admin_bar_items = _mw_adminimize_get_option_value( 'mw_adminimize_admin_bar_nodes' );
55
+ return $admin_bar_items;
56
+ }
57
+
58
+ add_action( 'admin_bar_menu', '_mw_adminimize_change_admin_bar', 999 );
59
+ /**
60
+ * Remove items in Admin Bar for current role of current active user
61
+ * Exclude Super Admin, if active
62
+ * Exclude Settings page of Adminimize
63
+ *
64
+ * @since 1.8.1 01/10/2013
65
+ * @return void
66
+ */
67
+ function _mw_adminimize_change_admin_bar( $wp_admin_bar ) {
68
+
69
+ // exclude super admin
70
+ if ( _mw_adminimize_exclude_super_admin() )
71
+ return NULL;
72
+
73
+ // exclude Adminimize Settings page
74
+ if ( isset( $GLOBALS['current_screen']->base ) &&
75
+ 'settings_page_adminimize/adminimize' !== $GLOBALS['current_screen']->base
76
+ )
77
+ return NULL;
78
+
79
+ $user_roles = _mw_adminimize_get_all_user_roles();
80
+
81
+ foreach ( $user_roles as $role ) {
82
+
83
+ $disabled_admin_bar_option_[$role] = _mw_adminimize_get_option_value(
84
+ 'mw_adminimize_disabled_admin_bar_' . $role . '_items'
85
+ );
86
+ }
87
+
88
+ foreach ( $user_roles as $role ) {
89
+
90
+ if ( ! isset( $disabled_admin_bar_option_[$role]['0'] ) )
91
+ $disabled_admin_bar_option_[$role]['0'] = '';
92
+ }
93
+
94
+ foreach ( $user_roles as $role ) {
95
+ $user = wp_get_current_user();
96
+
97
+ if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
98
+
99
+ if ( current_user_can( $role ) && is_array( $disabled_admin_bar_option_[$role] ) ) {
100
+
101
+ foreach( $disabled_admin_bar_option_[$role] as $admin_bar_item )
102
+ $wp_admin_bar->remove_node( $admin_bar_item );
103
+
104
+ } // end if
105
+
106
+ } // end if user roles
107
+ }
108
+
109
+ }
inc-setup/dashboard.php CHANGED
@@ -12,7 +12,7 @@ if ( ! function_exists( 'add_action' ) ) {
12
  // retrun registered widgets; only on page index/dashboard :(
13
  add_action( 'wp_dashboard_setup', '_mw_adminimize_dashboard_setup', 99 );
14
 
15
- function _mw_adminimize_dashboard_setup () {
16
  global $wp_meta_boxes;
17
 
18
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
12
  // retrun registered widgets; only on page index/dashboard :(
13
  add_action( 'wp_dashboard_setup', '_mw_adminimize_dashboard_setup', 99 );
14
 
15
+ function _mw_adminimize_dashboard_setup() {
16
  global $wp_meta_boxes;
17
 
18
  if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
inc-setup/meta-boxes.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Adminimize
4
+ * @subpackage Meta Boxes Setup
5
+ * @author Frank Bültge
6
+ * @since 1.8.1 01/10/2013
7
+ */
8
+ if ( ! function_exists( 'add_action' ) ) {
9
+ echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
+ exit;
11
+ }
12
+ // The global var is only usable on edit Post Type page
13
+ add_filter( 'do_meta_boxes', '_mw_adminimize_get_all_meta_boxes', 0, 3 );
14
+ function _mw_adminimize_get_all_meta_boxes( $post_type, $priority, $post ) {
15
+ global $wp_meta_boxes;
16
+
17
+ if ( ! empty( $wp_meta_boxes[$post_type] ) ) {
18
+
19
+ // get all options
20
+ $adminimizeoptions = get_option( 'mw_adminimize' );
21
+ // add admin bar array
22
+ $adminimizeoptions['mw_adminimize_meta_boxes_' . $post_type ] = $wp_meta_boxes[$post_type];
23
+
24
+ // update options
25
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
26
+ update_site_option( 'mw_adminimize', $adminimizeoptions );
27
+ else
28
+ update_option( 'mw_adminimize', $adminimizeoptions );
29
+ }
30
+ }
31
+
32
+ function _mw_adminimize_get_meta_boxes( $post_type = null, $context = 'advanced' ) {
33
+
34
+ $saved_wp_meta_boxes = _mw_adminimize_get_option_value( 'mw_adminimize_meta_boxes_' . $post_type );
35
+
36
+ return $saved_wp_meta_boxes;
37
+ }
38
+
39
+ function _mw_adminimize_remove_meta_boxes( $post_type = null, $context = 'advanced', $priority = 'default', $id ) {
40
+
41
+ //@todo foreach about settings
42
+ remove_meta_box( $id, $post_type, $context );
43
+ }
44
+
45
+ // remove on 'admin_menu' Hook
inc-setup/{admin-bar.php → remove-admin-bar.php} RENAMED
@@ -1,8 +1,8 @@
1
  <?php
2
  /**
3
- * @package Adminimize
4
- * @subpackage Admin Bar of WP 3.3 Setup
5
- * @author Frank Bültge
6
  */
7
  if ( ! function_exists( 'add_action' ) ) {
8
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
@@ -167,6 +167,7 @@ function _mw_adminimize_remove_admin_bar() {
167
  if ( ! is_admin_bar_showing() )
168
  return false;
169
 
 
170
  wp_deregister_script( 'admin-bar' );
171
  wp_deregister_style( 'admin-bar' );
172
  remove_action( 'init', '_wp_admin_bar_init' );
@@ -174,12 +175,17 @@ function _mw_adminimize_remove_admin_bar() {
174
  remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
175
 
176
  // maybe also: 'wp_head'
177
- foreach ( array( 'admin_head' ) as $hook ) {
178
  add_action(
179
  $hook,
180
  create_function(
181
  '',
182
- "echo '<style>body.admin-bar, body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>';"
 
 
 
 
 
183
  )
184
  );
185
  }
1
  <?php
2
  /**
3
+ * @package Adminimize
4
+ * @subpackage Remove Admin Bar of WP 3.3 Setup
5
+ * @author Frank Bültge
6
  */
7
  if ( ! function_exists( 'add_action' ) ) {
8
  echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
167
  if ( ! is_admin_bar_showing() )
168
  return false;
169
 
170
+ add_filter( 'show_admin_bar', '__return_false' );
171
  wp_deregister_script( 'admin-bar' );
172
  wp_deregister_style( 'admin-bar' );
173
  remove_action( 'init', '_wp_admin_bar_init' );
175
  remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
176
 
177
  // maybe also: 'wp_head'
178
+ foreach ( array( 'wp_head', 'admin_head' ) as $hook ) {
179
  add_action(
180
  $hook,
181
  create_function(
182
  '',
183
+ "echo '<style>body.admin-bar, body.admin-bar #wpcontent, body.admin-bar #adminmenu {
184
+ padding-top: 0px !important;
185
+ }
186
+ html.wp-toolbar {
187
+ padding-top: 0px !important;
188
+ }</style>';"
189
  )
190
  );
191
  }
inc-setup/widget.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Adminimize
4
+ * @subpackage Widget Setup
5
+ * @author Frank Bültge
6
+ * @since 1.8.1 01/10/2013
7
+ */
8
+ if ( ! function_exists( 'add_action' ) ) {
9
+ echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10
+ exit;
11
+ }
12
+
13
+ function _mw_adminimize_get_all_widgets() {
14
+ global $wp_widget_factory;
15
+
16
+ if ( is_object( $wp_widget_factory ) )
17
+ return $wp_widget_factory->widgets;
18
+ }
19
+
20
+ function _mw_adminimize_get_registered_widgets() {
21
+ global $wp_registered_widgets;
22
+
23
+ return $wp_registered_widgets;
24
+ }
25
+
26
+ function _mw_adminimize_get_sidebars_widgets() {
27
+ global $sidebars_widgets;
28
+
29
+ return $sidebars_widgets;
30
+ }
31
+
32
+ function _mw_adminimize_get_registered_sidebars() {
33
+ global $wp_registered_sidebars;
34
+
35
+ return $wp_registered_sidebars;
36
+ }
37
+
38
+ /**
39
+ * Doing on load of widgets.php
40
+ *
41
+ * @return void
42
+ */
43
+ add_action( 'plugins_loaded', '_mw_adminimize_on_widgets_init' );
44
+ function _mw_adminimize_on_widgets_init() {
45
+
46
+ if ( is_admin() && 'widgets.php' === $GLOBALS[ 'pagenow' ] ) {
47
+ add_action( 'widgets_init', '_mw_adminimize_unregister_widgets' );
48
+ add_action( 'widgets_init', '_mw_adminimize_unregister_sidebars', 9999 );
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Remove widgets, areas for different roles
54
+ *
55
+ * @return void
56
+ */
57
+ function _mw_adminimize_unregister_widgets() {
58
+
59
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
60
+ $adminimizeoptions = get_site_option( 'mw_adminimize' );
61
+ else
62
+ $adminimizeoptions = get_option( 'mw_adminimize' );
63
+
64
+ if ( current_user_can( 'manage_options' ) ) {
65
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
66
+ update_site_option( 'mw_adminimize', $adminimizeoptions );
67
+ else
68
+ update_option( 'mw_adminimize', $adminimizeoptions );
69
+ }
70
+
71
+ // exclude super admin
72
+ if ( _mw_adminimize_exclude_super_admin() )
73
+ return NULL;
74
+
75
+ $user_roles = _mw_adminimize_get_all_user_roles();
76
+
77
+ foreach ( $user_roles as $role ) {
78
+ $disabled_widget_option_[$role] = _mw_adminimize_get_option_value(
79
+ 'mw_adminimize_disabled_widget_option_' . $role . '_items'
80
+ );
81
+ }
82
+
83
+ foreach ( $user_roles as $role ) {
84
+ if ( ! isset( $disabled_widget_option_[$role]['0'] ) )
85
+ $disabled_widget_option_[$role]['0'] = '';
86
+ }
87
+
88
+ foreach ( $user_roles as $role ) {
89
+ $user = wp_get_current_user();
90
+
91
+ if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
92
+
93
+ if ( current_user_can( $role ) && is_array( $disabled_widget_option_[$role] ) ) {
94
+ foreach( $disabled_widget_option_[$role] as $widgets ) {
95
+ unregister_widget( $widgets );
96
+ //unregister_sidebar_widget( 'Monster_Widget' );
97
+ }
98
+ }
99
+
100
+ } // end if user roles
101
+ }
102
+
103
+ }
104
+
105
+ /**
106
+ * Remove sidebars for different roles
107
+ *
108
+ * @return void
109
+ */
110
+ function _mw_adminimize_unregister_sidebars() {
111
+
112
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
113
+ $adminimizeoptions = get_site_option( 'mw_adminimize' );
114
+ else
115
+ $adminimizeoptions = get_option( 'mw_adminimize' );
116
+
117
+ if ( current_user_can( 'manage_options' ) ) {
118
+ if ( is_multisite() && is_plugin_active_for_network( MW_ADMIN_FILE ) )
119
+ update_site_option( 'mw_adminimize', $adminimizeoptions );
120
+ else
121
+ update_option( 'mw_adminimize', $adminimizeoptions );
122
+ }
123
+
124
+ // exclude super admin
125
+ if ( _mw_adminimize_exclude_super_admin() )
126
+ return NULL;
127
+
128
+ $user_roles = _mw_adminimize_get_all_user_roles();
129
+
130
+ foreach ( $user_roles as $role ) {
131
+ $disabled_widget_option_[$role] = _mw_adminimize_get_option_value(
132
+ 'mw_adminimize_disabled_widget_option_' . $role . '_items'
133
+ );
134
+ }
135
+
136
+ foreach ( $user_roles as $role ) {
137
+ if ( ! isset( $disabled_widget_option_[$role]['0'] ) )
138
+ $disabled_widget_option_[$role]['0'] = '';
139
+ }
140
+
141
+ foreach ( $user_roles as $role ) {
142
+ $user = wp_get_current_user();
143
+
144
+ if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
145
+
146
+ if ( current_user_can( $role ) && is_array( $disabled_widget_option_[$role] ) ) {
147
+ foreach( $disabled_widget_option_[$role] as $sidebar ) {
148
+ unregister_sidebar( $sidebar );
149
+ }
150
+ }
151
+
152
+ } // end if user roles
153
+ }
154
+
155
+ }
js/remove_footer.js CHANGED
@@ -2,5 +2,5 @@
2
  * remove footer
3
  */
4
  jQuery(document).ready(function($) {
5
- $('#footer').remove();
6
  });
2
  * remove footer
3
  */
4
  jQuery(document).ready(function($) {
5
+ $('#footer, #footer-left, #footer-upgrade').remove();
6
  });
languages/adminimize-de_DE.po CHANGED
@@ -1087,12 +1087,12 @@ msgid "Your own page options"
1087
  msgstr "Deine eigenen Seiten-Einstellungen"
1088
 
1089
  # @ default
1090
- #: inc-setup/admin-bar.php:239
1091
  msgid "Network Admin"
1092
  msgstr "Netwerk-Admin"
1093
 
1094
  # @ default
1095
- #: inc-setup/admin-bar.php:241
1096
  msgid "Site Admin"
1097
  msgstr "Site-Admin"
1098
 
1087
  msgstr "Deine eigenen Seiten-Einstellungen"
1088
 
1089
  # @ default
1090
+ #: inc-setup/remove-admin-bar.php:239
1091
  msgid "Network Admin"
1092
  msgstr "Netwerk-Admin"
1093
 
1094
  # @ default
1095
+ #: inc-setup/remove-admin-bar.php:241
1096
  msgid "Site Admin"
1097
  msgstr "Site-Admin"
1098
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Adminimize ===
2
- Contributors: Bueltge
3
- Donate link: http://bueltge.de/wunschliste/
4
  Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
5
  Requires at least: 2.5
6
- Tested up to: 3.5-Beta2
7
- Stable tag: 1.8.0
8
 
9
  Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
10
 
@@ -18,10 +18,6 @@ With version 1.6.1 it is possible to add own options for hide areas in the backe
18
  = Support Custom Post Type =
19
  Also it is possible with version 1.7.18 to use on custom post types; hide 'unnecessary' areas on the custom post types for different roles and post types.
20
 
21
- = Compatibility with the drop-down menu plugins =
22
- 1. [Ozh Admin Drop Down Menu](http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/ "Admin Drop Down Menu for WordPress 2.5") by Ozh
23
- 1. [Drop Down Admin Menus](http://www.stuff.yellowswordfish.com/ "Drop Down Admin Menus for WordPress 2.5") by Andy Staines
24
-
25
  = Compatibility with the plugins for MetaBoxes in Write-area =
26
  1. You can add your own options, you must only see for css selectors
27
 
@@ -59,15 +55,15 @@ The plugin changes the administration backend and gives you the power to assign
59
  1. you can set an role to view the areas on link page, edit post, edit page and global
60
  1. you can add own options for set rights to role
61
  1. it is possible to disable HTML-Editor on edit-area, only Visual-tab
62
- 1. remove admin bar
63
- 1. remove items on custom post types
64
- 1. ... many more
 
 
65
 
66
- = More Plugins =
67
- Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
68
 
69
- = Interested in WordPress tips and tricks =
70
- You may also be interested in WordPress tips and tricks at [WP Engineer](http://wpengineer.com/) or for german people [bueltge.de](http://bueltge.de/)
71
 
72
  == Installation ==
73
  1. Unpack the download-package
@@ -93,6 +89,20 @@ See on [the official website](http://bueltge.de/wordpress-admin-theme-adminimize
93
  1. Adminimize Theme how in WordPress 2.3
94
 
95
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  = v1.8.0 =
97
  * Simple Support for WP Multisite
98
  * Enhancement for hide Text-Tab on editors in custom post types
1
  === Adminimize ===
2
+ Contributors: Bueltge, inpsyde
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4578111
4
  Tags: color, scheme, theme, admin, dashboard, color scheme, plugin, interface, ui, metabox, hide, editor, minimal, menu, customization, interface, administration, lite, light, usability, lightweight, layout, zen
5
  Requires at least: 2.5
6
+ Tested up to: 3.6-alpha
7
+ Stable tag: 1.8.1
8
 
9
  Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
10
 
18
  = Support Custom Post Type =
19
  Also it is possible with version 1.7.18 to use on custom post types; hide 'unnecessary' areas on the custom post types for different roles and post types.
20
 
 
 
 
 
21
  = Compatibility with the plugins for MetaBoxes in Write-area =
22
  1. You can add your own options, you must only see for css selectors
23
 
55
  1. you can set an role to view the areas on link page, edit post, edit page and global
56
  1. you can add own options for set rights to role
57
  1. it is possible to disable HTML-Editor on edit-area, only Visual-tab
58
+ 1. remove widgets in widgets settings for different role
59
+ 1. remove admin bar for different role
60
+ 1. remove admin bar items for different role
61
+ 1. remove items on custom post types for different role
62
+ 1. ... many many more
63
 
64
+ **Made by [Inpsyde](http://inpsyde.com) &middot; We love WordPress**
 
65
 
66
+ Have a look at the premium plugins in our [market](http://marketpress.com).
 
67
 
68
  == Installation ==
69
  1. Unpack the download-package
89
  1. Adminimize Theme how in WordPress 2.3
90
 
91
  == Changelog ==
92
+ = 1.8.2 (01/11/2013) =
93
+ * Fix PHP Notice message for empty var, see [support](http://wordpress.org/support/topic/undefined-index-current_screen)
94
+
95
+ = 1.8.1 (01/10/2013) =
96
+ * Fix PHP notice on message for network
97
+ * Check for active links manager; change from WP 3.5
98
+ * Add Widget settings (Beta)
99
+ * Fix for remove admin bar in backend
100
+ * Remove Backend options, there not usable with WP 3.5 and earlier
101
+ * Fix 'Category Height' in post to use also in newer versions of WP
102
+ * Fix to hide foorer, but it is usable to add custom content
103
+ * Fix Hints, Options for Multisite install
104
+ * Add Admin Bar options (Beta)
105
+
106
  = v1.8.0 =
107
  * Simple Support for WP Multisite
108
  * Enhancement for hide Text-Tab on editors in custom post types