Version Description
Download this release
Release Info
Developer | Bueltge |
Plugin | Adminimize |
Version | 1.7.23 |
Comparing to | |
See all releases |
Code changes from version 1.7.22 to 1.7.23
- adminimize.php +88 -109
- adminimize_admin_bar.php.new +104 -0
- inc-setup/admin-bar.php +247 -0
- inc-setup/dashboard.php +0 -0
- languages/adminimize-bg_BG.mo +0 -0
- languages/adminimize-bg_BG.po +0 -0
- languages/adminimize-ga_IR.mo +0 -0
- languages/adminimize-ga_IR.po +0 -0
- languages/adminimize-hi_IN.mo +0 -0
- languages/adminimize-hi_IN.po +0 -0
- readme.txt +20 -22
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
adminimize.php
CHANGED
@@ -12,8 +12,8 @@ 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.7.
|
16 |
-
License:
|
17 |
*/
|
18 |
|
19 |
/**
|
@@ -384,6 +384,12 @@ function _mw_adminimize_admin_init() {
|
|
384 |
}
|
385 |
}
|
386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
// set menu option
|
388 |
add_action( 'admin_head', '_mw_adminimize_set_menu_option', 1 );
|
389 |
// global_options
|
@@ -462,9 +468,6 @@ function _mw_adminimize_admin_init() {
|
|
462 |
}
|
463 |
}
|
464 |
|
465 |
-
// on init of WordPress
|
466 |
-
add_action( 'init', '_mw_adminimize_remove_admin_bar' );
|
467 |
-
|
468 |
// on admin init
|
469 |
add_action( 'admin_init', '_mw_adminimize_textdomain' );
|
470 |
add_action( 'admin_init', '_mw_adminimize_register_styles', 1 );
|
@@ -843,11 +846,10 @@ function _mw_adminimize_disable_flash_uploader() {
|
|
843 |
return FALSE;
|
844 |
}
|
845 |
|
846 |
-
|
847 |
/**
|
848 |
* set menu options from database
|
849 |
*/
|
850 |
-
function
|
851 |
global $pagenow, $menu, $submenu, $user_identity, $wp_version;
|
852 |
|
853 |
// exclude super admin
|
@@ -865,63 +867,86 @@ function _mw_adminimize_set_menu_option() {
|
|
865 |
$_mw_adminimize_user_info = _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
866 |
$_mw_adminimize_ui_redirect = _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
867 |
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
$_mw_adminimize_admin_head .=
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
$_mw_adminimize_admin_head .=
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
920 |
}
|
921 |
|
922 |
// set menu
|
923 |
if ( '' != $disabled_menu_['editor'] ) {
|
924 |
-
|
925 |
// set admin-menu
|
926 |
foreach ( $user_roles as $role ) {
|
927 |
$user = wp_get_current_user();
|
@@ -956,10 +981,9 @@ function _mw_adminimize_set_menu_option() {
|
|
956 |
}
|
957 |
}
|
958 |
}
|
959 |
-
|
960 |
}
|
961 |
|
962 |
-
echo $_mw_adminimize_admin_head;
|
963 |
}
|
964 |
|
965 |
|
@@ -1013,51 +1037,6 @@ function _mw_adminimize_set_global_option() {
|
|
1013 |
}
|
1014 |
|
1015 |
|
1016 |
-
function _mw_adminimize_remove_admin_bar() {
|
1017 |
-
|
1018 |
-
// exclude super admin
|
1019 |
-
if ( _mw_adminimize_exclude_super_admin() )
|
1020 |
-
return NULL;
|
1021 |
-
|
1022 |
-
$user_roles = _mw_adminimize_get_all_user_roles();
|
1023 |
-
|
1024 |
-
foreach ( $user_roles as $role ) {
|
1025 |
-
$disabled_global_option_[$role] = _mw_adminimize_get_option_value(
|
1026 |
-
'mw_adminimize_disabled_global_option_' . $role . '_items'
|
1027 |
-
);
|
1028 |
-
}
|
1029 |
-
|
1030 |
-
foreach ( $user_roles as $role ) {
|
1031 |
-
if ( ! isset( $disabled_global_option_[$role]['0'] ) )
|
1032 |
-
$disabled_global_option_[$role]['0'] = '';
|
1033 |
-
}
|
1034 |
-
|
1035 |
-
$remove_adminbar = FALSE;
|
1036 |
-
// new 1.7.8
|
1037 |
-
foreach ( $user_roles as $role ) {
|
1038 |
-
$user = wp_get_current_user();
|
1039 |
-
if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
|
1040 |
-
if ( current_user_can( $role )
|
1041 |
-
&& isset( $disabled_global_option_[$role] )
|
1042 |
-
&& is_array( $disabled_global_option_[$role] ) ) {
|
1043 |
-
$global_options = implode( ', ', $disabled_global_option_[$role] );
|
1044 |
-
if ( _mw_adminimize_recursive_in_array( '.show-admin-bar', $disabled_global_option_[$role] ) )
|
1045 |
-
$remove_adminbar = TRUE;
|
1046 |
-
}
|
1047 |
-
}
|
1048 |
-
}
|
1049 |
-
|
1050 |
-
// for deactivate admin bar
|
1051 |
-
if ( $remove_adminbar ) {
|
1052 |
-
add_filter( 'show_admin_bar', '__return_false' );
|
1053 |
-
wp_deregister_script( 'admin-bar' );
|
1054 |
-
wp_deregister_style( 'admin-bar' );
|
1055 |
-
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
1056 |
-
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
1057 |
-
}
|
1058 |
-
}
|
1059 |
-
|
1060 |
-
|
1061 |
/**
|
1062 |
* set metabox options from database an area post
|
1063 |
*/
|
@@ -1301,7 +1280,6 @@ function _mw_adminimize_set_nav_menu_option() {
|
|
1301 |
|
1302 |
/**
|
1303 |
* small user-info
|
1304 |
-
* @uses $post_ID
|
1305 |
*/
|
1306 |
function _mw_adminimize_small_user_info() {
|
1307 |
?>
|
@@ -1322,6 +1300,7 @@ function _mw_adminimize_small_user_info() {
|
|
1322 |
*/
|
1323 |
require_once( 'adminimize_page.php' );
|
1324 |
require_once( 'inc-setup/dashboard.php' );
|
|
|
1325 |
|
1326 |
/**
|
1327 |
* credit in wp-footer
|
@@ -1703,7 +1682,7 @@ function _mw_adminimize_update() {
|
|
1703 |
$adminimizeoptions['_mw_adminimize_own_dashboard_options'] = 0;
|
1704 |
}
|
1705 |
|
1706 |
-
$adminimizeoptions['mw_adminimize_dashboard_widgets'] = _mw_adminimize_get_option_value('mw_adminimize_dashboard_widgets');
|
1707 |
|
1708 |
$adminimizeoptions['mw_adminimize_default_menu'] = $GLOBALS['menu'];
|
1709 |
$adminimizeoptions['mw_adminimize_default_submenu'] = $GLOBALS['submenu'];
|
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.7.23
|
16 |
+
License: GPLv3
|
17 |
*/
|
18 |
|
19 |
/**
|
384 |
}
|
385 |
}
|
386 |
|
387 |
+
// change Admin Bar and user Info
|
388 |
+
if ( version_compare( $wp_version, '3.3alpha', '>=' ) ) {
|
389 |
+
_mw_adminimize_set_menu_option_33();
|
390 |
+
} else {
|
391 |
+
_mw_adminimize_set_user_info();
|
392 |
+
}
|
393 |
// set menu option
|
394 |
add_action( 'admin_head', '_mw_adminimize_set_menu_option', 1 );
|
395 |
// global_options
|
468 |
}
|
469 |
}
|
470 |
|
|
|
|
|
|
|
471 |
// on admin init
|
472 |
add_action( 'admin_init', '_mw_adminimize_textdomain' );
|
473 |
add_action( 'admin_init', '_mw_adminimize_register_styles', 1 );
|
846 |
return FALSE;
|
847 |
}
|
848 |
|
|
|
849 |
/**
|
850 |
* set menu options from database
|
851 |
*/
|
852 |
+
function _mw_adminimize_set_user_info() {
|
853 |
global $pagenow, $menu, $submenu, $user_identity, $wp_version;
|
854 |
|
855 |
// exclude super admin
|
867 |
$_mw_adminimize_user_info = _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
868 |
$_mw_adminimize_ui_redirect = _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
869 |
|
870 |
+
if ( version_compare( $wp_version, "3.3alpha", "<=" ) ) {
|
871 |
+
// change user-info
|
872 |
+
switch ( $_mw_adminimize_user_info) {
|
873 |
+
case 1:
|
874 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
875 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove(); });' . "\n";
|
876 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
877 |
+
break;
|
878 |
+
case 2:
|
879 |
+
if ( version_compare( $wp_version, "3.2alpha", ">=") ) {
|
880 |
+
if ( function_exists( 'is_admin_bar_showing' ) && is_admin_bar_showing() )
|
881 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info31.css" type="text/css" />' . "\n";
|
882 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info32.css" type="text/css" />' . "\n";
|
883 |
+
} elseif ( version_compare( $wp_version, "3.0alpha", ">=") ) {
|
884 |
+
if ( function_exists( 'is_admin_bar_showing' ) && is_admin_bar_showing() )
|
885 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info31.css" type="text/css" />' . "\n";
|
886 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info30.css" type="text/css" />' . "\n";
|
887 |
+
} elseif ( version_compare(substr( $wp_version, 0, 3), '2.7', '>=' ) ) {
|
888 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info27.css" type="text/css" />' . "\n";
|
889 |
+
} else {
|
890 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info.css" type="text/css" />' . "\n";
|
891 |
+
}
|
892 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
893 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove();';
|
894 |
+
if ( $_mw_adminimize_ui_redirect == '1' ) {
|
895 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option( 'siteurl' ) . wp_nonce_url( ( '/wp-login.php?action=logout&redirect_to=' ) . get_option( 'siteurl' ) , 'log-out' ) . '" title="' . __( 'Log Out' ) . '">' . __( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
896 |
+
} else {
|
897 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option( 'siteurl' ) . wp_nonce_url( ( '/wp-login.php?action=logout' ) , 'log-out' ) . '" title="' . __( 'Log Out' ) . '">' . __( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
898 |
+
}
|
899 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
900 |
+
break;
|
901 |
+
case 3:
|
902 |
+
if ( version_compare( $wp_version, "3.2alpha", ">=") ) {
|
903 |
+
if ( function_exists( 'is_admin_bar_showing' ) && is_admin_bar_showing() )
|
904 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info31.css" type="text/css" />' . "\n";
|
905 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info32.css" type="text/css" />' . "\n";
|
906 |
+
} elseif ( version_compare( $wp_version, "3.0alpha", ">=") ) {
|
907 |
+
if ( function_exists( 'is_admin_bar_showing' ) && is_admin_bar_showing() )
|
908 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info31.css" type="text/css" />' . "\n";
|
909 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info30.css" type="text/css" />' . "\n";
|
910 |
+
} elseif ( version_compare(substr( $wp_version, 0, 3), '2.7', '>=' ) ) {
|
911 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info27.css" type="text/css" />' . "\n";
|
912 |
+
} else {
|
913 |
+
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/css/mw_small_user_info.css" type="text/css" />' . "\n";
|
914 |
+
}
|
915 |
+
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
916 |
+
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove();';
|
917 |
+
if ( $_mw_adminimize_ui_redirect == '1' ) {
|
918 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option( 'siteurl' ) . ( '/wp-admin/profile.php' ) . '">' . $user_identity . '</a> | <a href="' . get_option( 'siteurl' ) . wp_nonce_url( ( '/wp-login.php?action=logout&redirect_to=' ) . get_option( 'siteurl' ), 'log-out' ) . '" title="' . __( 'Log Out' ) . '">' . __( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
919 |
+
} else {
|
920 |
+
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option( 'siteurl' ) . ( '/wp-admin/profile.php' ) . '">' . $user_identity . '</a> | <a href="' . get_option( 'siteurl' ) . wp_nonce_url( ( '/wp-login.php?action=logout' ), 'log-out' ) . '" title="' . __( 'Log Out' ) . '">' . __( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
921 |
+
}
|
922 |
+
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
923 |
+
break;
|
924 |
+
}
|
925 |
+
} // end if < WP3.3
|
926 |
+
|
927 |
+
echo $_mw_adminimize_admin_head;
|
928 |
+
}
|
929 |
+
|
930 |
+
/**
|
931 |
+
* Set menu for settings
|
932 |
+
*/
|
933 |
+
function _mw_adminimize_set_menu_option() {
|
934 |
+
global $pagenow, $menu, $submenu, $user_identity, $wp_version;
|
935 |
+
|
936 |
+
// exclude super admin
|
937 |
+
if ( _mw_adminimize_exclude_super_admin() )
|
938 |
+
return NULL;
|
939 |
+
|
940 |
+
$user_roles = _mw_adminimize_get_all_user_roles();
|
941 |
+
|
942 |
+
foreach ( $user_roles as $role ) {
|
943 |
+
$disabled_menu_[$role] = _mw_adminimize_get_option_value( 'mw_adminimize_disabled_menu_' . $role . '_items' );
|
944 |
+
$disabled_submenu_[$role] = _mw_adminimize_get_option_value( 'mw_adminimize_disabled_submenu_' . $role . '_items' );
|
945 |
}
|
946 |
|
947 |
// set menu
|
948 |
if ( '' != $disabled_menu_['editor'] ) {
|
949 |
+
|
950 |
// set admin-menu
|
951 |
foreach ( $user_roles as $role ) {
|
952 |
$user = wp_get_current_user();
|
981 |
}
|
982 |
}
|
983 |
}
|
984 |
+
|
985 |
}
|
986 |
|
|
|
987 |
}
|
988 |
|
989 |
|
1037 |
}
|
1038 |
|
1039 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1040 |
/**
|
1041 |
* set metabox options from database an area post
|
1042 |
*/
|
1280 |
|
1281 |
/**
|
1282 |
* small user-info
|
|
|
1283 |
*/
|
1284 |
function _mw_adminimize_small_user_info() {
|
1285 |
?>
|
1300 |
*/
|
1301 |
require_once( 'adminimize_page.php' );
|
1302 |
require_once( 'inc-setup/dashboard.php' );
|
1303 |
+
require_once( 'inc-setup/admin-bar.php' );
|
1304 |
|
1305 |
/**
|
1306 |
* credit in wp-footer
|
1682 |
$adminimizeoptions['_mw_adminimize_own_dashboard_options'] = 0;
|
1683 |
}
|
1684 |
|
1685 |
+
$adminimizeoptions['mw_adminimize_dashboard_widgets'] = _mw_adminimize_get_option_value('mw_adminimize_dashboard_widgets' );
|
1686 |
|
1687 |
$adminimizeoptions['mw_adminimize_default_menu'] = $GLOBALS['menu'];
|
1688 |
$adminimizeoptions['mw_adminimize_default_submenu'] = $GLOBALS['submenu'];
|
adminimize_admin_bar.php.new
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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> — ' . $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 ); ?> »" /><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 |
+
?>
|
inc-setup/admin-bar.php
ADDED
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.";
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
// on init of WordPress
|
13 |
+
add_action( 'init', '_mw_adminimize_remove_admin_bar', 0 );
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Change the var of Admin Bar in WP 3.3
|
17 |
+
*/
|
18 |
+
function _mw_adminimize_customize_admin_bar( $admin_bar_keys = array() ) {
|
19 |
+
|
20 |
+
if ( ! is_admin_bar_showing() )
|
21 |
+
return;
|
22 |
+
|
23 |
+
global $wp_admin_bar;
|
24 |
+
|
25 |
+
foreach ($admin_bar_keys as $key ) {
|
26 |
+
$wp_admin_bar->remove_menu( $key );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
/*
|
30 |
+
* Remove my account item in admin bar >3.3
|
31 |
+
*/
|
32 |
+
function _mw_adminimize_remove_my_account() {
|
33 |
+
|
34 |
+
_mw_adminimize_customize_admin_bar( array( 'my-account' ) );
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Add Logout link to admin abr in wp 3.3
|
39 |
+
*/
|
40 |
+
function _mw_adminimize_add_logout( $wp_admin_bar ) {
|
41 |
+
|
42 |
+
$user_id = get_current_user_id();
|
43 |
+
$current_user = wp_get_current_user();
|
44 |
+
$profile_url = get_edit_profile_url( $user_id );
|
45 |
+
|
46 |
+
if ( ! $user_id )
|
47 |
+
return;
|
48 |
+
|
49 |
+
$wp_admin_bar->add_menu( array(
|
50 |
+
'id' => 'mw-account',
|
51 |
+
'parent' => 'top-secondary',
|
52 |
+
'title' => __( 'Log Out' ),
|
53 |
+
'href' => wp_logout_url(),
|
54 |
+
) );
|
55 |
+
}
|
56 |
+
|
57 |
+
function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
|
58 |
+
|
59 |
+
$user_id = get_current_user_id();
|
60 |
+
$current_user = wp_get_current_user();
|
61 |
+
$profile_url = get_edit_profile_url( $user_id );
|
62 |
+
|
63 |
+
if ( ! $user_id )
|
64 |
+
return;
|
65 |
+
|
66 |
+
$user_info = $current_user->display_name;
|
67 |
+
|
68 |
+
$wp_admin_bar->add_menu( array(
|
69 |
+
'id' => 'mw-account',
|
70 |
+
'parent' => 'top-secondary',
|
71 |
+
'title' => $user_info . ' ' . __( 'Log Out' ),
|
72 |
+
'href' => wp_logout_url(),
|
73 |
+
) );
|
74 |
+
}
|
75 |
+
|
76 |
+
function _mw_adminimize_set_menu_option_33() {
|
77 |
+
global $pagenow, $menu, $submenu, $user_identity, $wp_version;
|
78 |
+
|
79 |
+
// exclude super admin
|
80 |
+
if ( _mw_adminimize_exclude_super_admin() )
|
81 |
+
return NULL;
|
82 |
+
|
83 |
+
$user_roles = _mw_adminimize_get_all_user_roles();
|
84 |
+
|
85 |
+
foreach ( $user_roles as $role ) {
|
86 |
+
$disabled_menu_[$role] = _mw_adminimize_get_option_value( 'mw_adminimize_disabled_menu_' . $role . '_items' );
|
87 |
+
$disabled_submenu_[$role] = _mw_adminimize_get_option_value( 'mw_adminimize_disabled_submenu_' . $role . '_items' );
|
88 |
+
}
|
89 |
+
|
90 |
+
$_mw_adminimize_admin_head = "\n";
|
91 |
+
$_mw_adminimize_user_info = _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
92 |
+
$_mw_adminimize_ui_redirect = _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
93 |
+
// change user-info
|
94 |
+
switch ( $_mw_adminimize_user_info) {
|
95 |
+
case 1:
|
96 |
+
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
97 |
+
break;
|
98 |
+
case 2:
|
99 |
+
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
100 |
+
add_action( 'admin_bar_menu', '_mw_adminimize_add_logout', 0 );
|
101 |
+
break;
|
102 |
+
case 3:
|
103 |
+
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_remove_my_account' );
|
104 |
+
add_action( 'admin_bar_menu', '_mw_adminimize_add_user_logout', 0 );
|
105 |
+
break;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Remove Admin Bar
|
111 |
+
*/
|
112 |
+
function _mw_adminimize_remove_admin_bar() {
|
113 |
+
|
114 |
+
// exclude super admin
|
115 |
+
if ( _mw_adminimize_exclude_super_admin() )
|
116 |
+
return NULL;
|
117 |
+
|
118 |
+
global $wp_version;
|
119 |
+
|
120 |
+
$user_roles = _mw_adminimize_get_all_user_roles();
|
121 |
+
|
122 |
+
foreach ( $user_roles as $role ) {
|
123 |
+
$disabled_global_option_[$role] = _mw_adminimize_get_option_value(
|
124 |
+
'mw_adminimize_disabled_global_option_' . $role . '_items'
|
125 |
+
);
|
126 |
+
}
|
127 |
+
|
128 |
+
foreach ( $user_roles as $role ) {
|
129 |
+
if ( ! isset( $disabled_global_option_[$role]['0'] ) )
|
130 |
+
$disabled_global_option_[$role]['0'] = '';
|
131 |
+
}
|
132 |
+
|
133 |
+
$remove_adminbar = FALSE;
|
134 |
+
// new 1.7.8
|
135 |
+
foreach ( $user_roles as $role ) {
|
136 |
+
$user = wp_get_current_user();
|
137 |
+
if ( is_array( $user->roles) && in_array( $role, $user->roles) ) {
|
138 |
+
if ( current_user_can( $role )
|
139 |
+
&& isset( $disabled_global_option_[$role] )
|
140 |
+
&& is_array( $disabled_global_option_[$role] ) ) {
|
141 |
+
$global_options = implode( ', ', $disabled_global_option_[$role] );
|
142 |
+
if ( _mw_adminimize_recursive_in_array( '.show-admin-bar', $disabled_global_option_[$role] ) )
|
143 |
+
$remove_adminbar = TRUE;
|
144 |
+
}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
if ( $remove_adminbar ) {
|
149 |
+
// for deactivate admin bar in WP smaller WP 3.3
|
150 |
+
if ( version_compare( $wp_version, '3.3alpha', '<=' ) ) {
|
151 |
+
add_filter( 'show_admin_bar', '__return_false' );
|
152 |
+
wp_deregister_script( 'admin-bar' );
|
153 |
+
wp_deregister_style( 'admin-bar' );
|
154 |
+
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
155 |
+
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
156 |
+
} else {
|
157 |
+
if ( ! is_admin_bar_showing() )
|
158 |
+
return false;
|
159 |
+
|
160 |
+
wp_deregister_script( 'admin-bar' );
|
161 |
+
wp_deregister_style( 'admin-bar' );
|
162 |
+
remove_action( 'init', '_wp_admin_bar_init' );
|
163 |
+
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
164 |
+
remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
|
165 |
+
|
166 |
+
// maybe also: 'wp_head'
|
167 |
+
foreach ( array( 'admin_head' ) as $hook ) {
|
168 |
+
add_action(
|
169 |
+
$hook,
|
170 |
+
create_function(
|
171 |
+
'',
|
172 |
+
"echo '<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>';"
|
173 |
+
)
|
174 |
+
);
|
175 |
+
}
|
176 |
+
|
177 |
+
add_action( 'in_admin_header', '_mw_adminimize_restore_links' );
|
178 |
+
} // end else version 3.3
|
179 |
+
} // end if $remove_adminbar TRUE
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* Add Site Link in Menu
|
184 |
+
*/
|
185 |
+
function _mw_adminimize_restore_links() {
|
186 |
+
|
187 |
+
$_mw_adminimize_user_info = _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
188 |
+
?>
|
189 |
+
<style type="text/css">
|
190 |
+
#mw_adminimize_admin_bar {
|
191 |
+
left: 0;
|
192 |
+
right: 0;
|
193 |
+
height: 33px;
|
194 |
+
z-index: 999;
|
195 |
+
border-bottom: 1px solid #dfdfdf;
|
196 |
+
}
|
197 |
+
#mw_adminimize_admin_bar #mw_title {
|
198 |
+
font-family: Georgia,"Times New Roman",Times,serif;
|
199 |
+
font-size: 16px;
|
200 |
+
color: #464646;
|
201 |
+
text-decoration: none;
|
202 |
+
padding-top: 8px;
|
203 |
+
display: block;
|
204 |
+
float: left;
|
205 |
+
}
|
206 |
+
#mw_adminimize_admin_bar #mw_title:hover {
|
207 |
+
text-decoration: underline;
|
208 |
+
}
|
209 |
+
#mw_adminimize_admin_bar #mw_adminimize_login {
|
210 |
+
padding: 8px 15px 0 0;
|
211 |
+
display: block;
|
212 |
+
float: right;
|
213 |
+
}
|
214 |
+
</style>
|
215 |
+
<div id="mw_adminimize_admin_bar">
|
216 |
+
<?php echo '<a id="mw_title" href="' . home_url() . '" title="' . __( get_bloginfo('name') ) . '" target="_blank">' . get_bloginfo('name') . '</a>';
|
217 |
+
?>
|
218 |
+
<div id="mw_adminimize_login">
|
219 |
+
<?php
|
220 |
+
wp_get_current_user();
|
221 |
+
$current_user = wp_get_current_user();
|
222 |
+
if ( empty( $_mw_adminimize_user_info ) || 0 == $_mw_adminimize_user_info || 3 == $_mw_adminimize_user_info ) {
|
223 |
+
if ( ! ( $current_user instanceof WP_User ) )
|
224 |
+
return;
|
225 |
+
echo ' ' . $current_user->user_login . ' ';
|
226 |
+
|
227 |
+
if ( is_multisite() && is_super_admin() ) {
|
228 |
+
if ( ! is_network_admin() ) {
|
229 |
+
echo '| <a href="' . network_admin_url() . '" title="' . esc_attr__('Network Admin') . '">' . __('Network Admin'). '</a>';
|
230 |
+
} else {
|
231 |
+
echo '| <a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>';
|
232 |
+
}
|
233 |
+
}
|
234 |
+
}
|
235 |
+
|
236 |
+
if ( empty( $_mw_adminimize_user_info ) ||
|
237 |
+
0 == $_mw_adminimize_user_info ||
|
238 |
+
2 == $_mw_adminimize_user_info ||
|
239 |
+
3 == $_mw_adminimize_user_info ) {
|
240 |
+
?> | <?php echo '<a href="' . wp_logout_url() . '" title="' . esc_attr__('Log Out') . '">' . __('Log Out') . '</a>';
|
241 |
+
}
|
242 |
+
?>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
<?php
|
246 |
+
}
|
247 |
+
|
inc-setup/dashboard.php
CHANGED
File without changes
|
languages/adminimize-bg_BG.mo
CHANGED
File without changes
|
languages/adminimize-bg_BG.po
CHANGED
File without changes
|
languages/adminimize-ga_IR.mo
CHANGED
File without changes
|
languages/adminimize-ga_IR.po
CHANGED
File without changes
|
languages/adminimize-hi_IN.mo
CHANGED
File without changes
|
languages/adminimize-hi_IN.po
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.3
|
7 |
-
Stable tag: 1.7.
|
8 |
|
9 |
Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
|
10 |
|
@@ -34,8 +34,6 @@ Also it is possible with version 1.7.18 to use on custom post types; hide 'unnec
|
|
34 |
= Requirements =
|
35 |
1. WordPress version 2.5 and later
|
36 |
|
37 |
-
Please visit [the official website](http://bueltge.de/wordpress-admin-theme-adminimize/674/ "Adminimize") for further details and the latest information on this plugin.
|
38 |
-
|
39 |
= What does this plugin do? =
|
40 |
The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the submenu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical - this can all be done per user so each user can have his own settings.
|
41 |
|
@@ -71,18 +69,6 @@ The plugin changes the administration backend and gives you the power to assign
|
|
71 |
1. remove items on custom post types
|
72 |
1. ... many more
|
73 |
|
74 |
-
= Localizations =
|
75 |
-
* Also Thanks to [Ovidio](http://pacura.ru/ "pacaru.ru") for an translations the details in english and [Gürkan Gür](http://www.seqizz.net/ "Gürkan Gür") for translation in turkish.
|
76 |
-
* Thanks to [Gabriel Scheffer](http://www.gabrielscheffer.com.ar "Gabriel Scheffer") for the spanish language files.
|
77 |
-
* Thanks to [Andrea Piccinelli] for the italian language files.
|
78 |
-
* Thanks to Fat Cow for the belarussian language files.
|
79 |
-
* Thanks to [Rene](http://wpwebshop.com/ "wpwebshop.com") for dutch translation.
|
80 |
-
* Thanks to [GeorgWP](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208 "wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208") for danish language files.
|
81 |
-
* Thanks to [Scavenger](http://www.photos-marseille.fr) for french language files.
|
82 |
-
* Thanks to [Outshine Solutions](http://outshinesolutions.com/web-hosting/web-hosting-india.html) for hindi language files.
|
83 |
-
* Thanks to [ray.s](http://letsbefamous.com/) for irish translation.
|
84 |
-
* Thanks for bulgarian language files to [Web Geek](http://webhostinggeeks.com/)
|
85 |
-
|
86 |
= More Plugins =
|
87 |
Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
|
88 |
|
@@ -105,14 +91,14 @@ See on [the official website](http://bueltge.de/wordpress-admin-theme-adminimize
|
|
105 |
|
106 |
== Screenshots ==
|
107 |
1. Settings in WordPress 3.2-beta with two Custom Post Types
|
108 |
-
1. configure-area for user/admin; options for metaboxes, areas in write-area and menu in WordPress 2.7/2.8
|
109 |
-
1. configure-area for user in WordPress 2.7/2.8
|
110 |
-
1. Small tweak for design higher WP 2.7, save 50px over the menu
|
111 |
-
1. minimize header after activate in WordPress 2.5
|
112 |
-
1. configure-area for user in WordPress 2.5
|
113 |
-
1. Adminimize Theme how in WordPress 2.3
|
114 |
|
115 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= v1.7.22 =
|
117 |
* Security fix for $_GET on the admin-settings-page
|
118 |
|
@@ -360,6 +346,18 @@ Good news, this plugin is free for everyone! Since it's released under the GPL,
|
|
360 |
= Translations =
|
361 |
The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all defintions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows).
|
362 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
|
364 |
== Frequently Asked Questions ==
|
365 |
= Help with "Your own options" =
|
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.3
|
7 |
+
Stable tag: 1.7.23
|
8 |
|
9 |
Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend and many many more ...
|
10 |
|
34 |
= Requirements =
|
35 |
1. WordPress version 2.5 and later
|
36 |
|
|
|
|
|
37 |
= What does this plugin do? =
|
38 |
The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the submenu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical - this can all be done per user so each user can have his own settings.
|
39 |
|
69 |
1. remove items on custom post types
|
70 |
1. ... many more
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
= More Plugins =
|
73 |
Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
|
74 |
|
91 |
|
92 |
== Screenshots ==
|
93 |
1. Settings in WordPress 3.2-beta with two Custom Post Types
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
== Changelog ==
|
96 |
+
= v1.7.23 =
|
97 |
+
* Maintenance: change function to remove admin bar for WP 3.3, see [Forum item](http://wordpress.org/support/topic/694201)
|
98 |
+
* New: if deactivate Admin Bar in 3.3, add Link to Site and User on top
|
99 |
+
* Maintenance: change for user Info to works also in WP 3.3
|
100 |
+
* Bugfixes: fixing on changes for WP 3.2.1 :(
|
101 |
+
|
102 |
= v1.7.22 =
|
103 |
* Security fix for $_GET on the admin-settings-page
|
104 |
|
346 |
= Translations =
|
347 |
The plugin comes with various translations, please refer to the [WordPress Codex](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") for more information about activating the translation. If you want to help to translate the plugin to your language, please have a look at the sitemap.pot file which contains all defintions and may be used with a [gettext](http://www.gnu.org/software/gettext/) editor like [Poedit](http://www.poedit.net/) (Windows).
|
348 |
|
349 |
+
= Localizations =
|
350 |
+
* Also Thanks to [Ovidio](http://pacura.ru/ "pacaru.ru") for an translations the details in english and [Gürkan Gür](http://www.seqizz.net/ "Gürkan Gür") for translation in turkish.
|
351 |
+
* Thanks to [Gabriel Scheffer](http://www.gabrielscheffer.com.ar "Gabriel Scheffer") for the spanish language files.
|
352 |
+
* Thanks to [Andrea Piccinelli] for the italian language files.
|
353 |
+
* Thanks to Fat Cow for the belarussian language files.
|
354 |
+
* Thanks to [Rene](http://wpwebshop.com/ "wpwebshop.com") for dutch translation.
|
355 |
+
* Thanks to [GeorgWP](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208 "wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=208") for danish language files.
|
356 |
+
* Thanks to [Scavenger](http://www.photos-marseille.fr) for french language files.
|
357 |
+
* Thanks to [Outshine Solutions](http://outshinesolutions.com/web-hosting/web-hosting-india.html) for hindi language files.
|
358 |
+
* Thanks to [ray.s](http://letsbefamous.com/) for irish translation.
|
359 |
+
* Thanks for bulgarian language files to [Web Geek](http://webhostinggeeks.com/)
|
360 |
+
|
361 |
|
362 |
== Frequently Asked Questions ==
|
363 |
= Help with "Your own options" =
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
screenshot-4.png
DELETED
Binary file
|
screenshot-5.png
DELETED
Binary file
|
screenshot-6.png
DELETED
Binary file
|
screenshot-7.png
DELETED
Binary file
|