Version Description
(2016-02-21) =
* Rewrite the Admin Bar settings, simplify the source and new hook to get and render the Admin Bar.
* Change settings screen for custom post type.
* Fix "select all" on Admin Bar settings.
* Fix exclude settings page for pages, there is the current screen not existent.
* Improve the exclude settings page function for hooks, there fired before get_current_screen
.
* Remove more legacy code before WP 3.3.
* Change removal of Menu and Submenu items to WP core functions, possible to non support older WP Versions.
* Supports multiple roles on "Menu Options" and "Global Options".
* Add possibility to hide Admin Notices globally, new setting point in "Global Options".
Download this release
Release Info
Developer | Bueltge |
Plugin | Adminimize |
Version | 1.10.0 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.10.0
- CHANGELOG.md +11 -0
- adminimize.php +111 -214
- adminimize_page.php +9 -9
- css/style.css +4 -12
- css/style.min.css +1 -1
- inc-options/admin_bar.php +11 -9
- inc-options/admin_bar_frontend.php +12 -11
- inc-options/backend_options.php +3 -3
- inc-options/dashboard_options.php +12 -5
- inc-options/deinstall_options.php +4 -4
- inc-options/global_options.php +11 -4
- inc-options/im_export_options.php +1 -1
- inc-options/links_options.php +11 -4
- inc-options/menu_options.php +74 -68
- inc-options/minimenu.php +2 -2
- inc-options/widget_options.php +11 -4
- inc-options/wp_nav_menu_options.php +11 -4
- inc-options/write_cp_options.php +31 -20
- inc-options/write_page_options.php +11 -4
- inc-options/write_post_options.php +12 -6
- inc-setup/admin-bar-items.php +43 -143
- inc-setup/helping_hands.php +15 -1
- inc-setup/messages.php +2 -2
- inc-setup/remove-admin-bar.php +69 -56
- languages/adminimize-de_DE.mo +0 -0
- languages/adminimize-de_DE.po +5 -5
- languages/adminimize-xx_XX.pot +182 -184
- readme.txt +20 -19
CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
## 1.9.2 (2016-01-30)
|
2 |
* Change get role name, return now a array with slug and name to fix "Select All" function for custom roles.
|
3 |
* Change Menu Items to Key value, not the id. Makes possible to hide also menu items, there have a stupid menu entry.
|
1 |
+
## 1.10.0 (2016-02-21)
|
2 |
+
* Rewrite the Admin Bar settings, simplify the source and new hook to get and render the Admin Bar.
|
3 |
+
* Change settings screen for custom post type.
|
4 |
+
* Fix "select all" on Admin Bar settings.
|
5 |
+
* Fix exclude settings page for pages, there is the current screen not existent.
|
6 |
+
* Improve the exclude settings page function for hooks, there fired before `get_current_screen`.
|
7 |
+
* Remove more legacy code before WP 3.3.
|
8 |
+
* Change removal of Menu and Submenu items to WP core functions, possible to non support older WP Versions.
|
9 |
+
* Supports multiple roles on "Menu Options" and "Global Options".
|
10 |
+
* Add possibility to hide Admin Notices globally, new setting point in "Global Options".
|
11 |
+
|
12 |
## 1.9.2 (2016-01-30)
|
13 |
* Change get role name, return now a array with slug and name to fix "Select All" function for custom roles.
|
14 |
* Change Menu Items to Key value, not the id. Makes possible to hide also menu items, there have a stupid menu entry.
|
adminimize.php
CHANGED
@@ -7,13 +7,13 @@
|
|
7 |
* Description: Visually compresses the administrative 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 all 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.
|
8 |
* Author: Frank Bültge
|
9 |
* Author URI: http://bueltge.de/
|
10 |
-
* Version: 1.
|
11 |
-
* License:
|
12 |
*
|
13 |
* @package WordPress
|
14 |
* @author Frank Bültge <frank@bueltge.de>
|
15 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
16 |
-
* @version 2016-
|
17 |
*/
|
18 |
|
19 |
/**
|
@@ -33,13 +33,21 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
33 |
define( 'FB_ADMINIMIZE_BASENAME', plugin_basename( __FILE__ ) );
|
34 |
define( 'FB_ADMINIMIZE_BASEFOLDER', plugin_basename( dirname( __FILE__ ) ) );
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
function _mw_adminimize_get_plugin_data( $value = 'Version' ) {
|
37 |
|
38 |
if ( ! function_exists( 'get_plugin_data' ) ) {
|
39 |
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
40 |
}
|
41 |
|
42 |
-
$plugin_data
|
|
|
43 |
return $plugin_data[ $value ];
|
44 |
}
|
45 |
|
@@ -84,19 +92,30 @@ function _mw_adminimize_exclude_super_admin() {
|
|
84 |
*/
|
85 |
function _mw_adminimize_exclude_settings_page() {
|
86 |
|
87 |
-
if ( !
|
88 |
-
return
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
93 |
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
97 |
}
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
|
102 |
/**
|
@@ -110,7 +129,7 @@ function _mw_adminimize_is_active_on_multisite() {
|
|
110 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
111 |
}
|
112 |
|
113 |
-
if ( is_multisite() && is_plugin_active_for_network(
|
114 |
return TRUE;
|
115 |
}
|
116 |
|
@@ -126,12 +145,12 @@ function _mw_adminimize_is_active_on_multisite() {
|
|
126 |
*/
|
127 |
function _mw_adminimize_get_all_user_roles() {
|
128 |
|
|
|
129 |
global $wp_roles;
|
130 |
|
131 |
$user_roles = array();
|
132 |
|
133 |
if ( NULL !== $wp_roles->roles && is_array( $wp_roles->roles ) ) {
|
134 |
-
/** @var array $wp_roles */
|
135 |
foreach ( $wp_roles->roles as $role => $data ) {
|
136 |
$user_roles[] = $role;
|
137 |
//$data contains caps, maybe for later use..
|
@@ -156,20 +175,15 @@ function _mw_adminimize_get_all_user_roles() {
|
|
156 |
*/
|
157 |
function _mw_adminimize_get_all_user_roles_names() {
|
158 |
|
|
|
159 |
global $wp_roles;
|
160 |
-
$user_roles_names =
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
///** @var array $wp_roles */
|
168 |
-
//foreach ( $wp_roles->role_names as $role_name => $data ) {
|
169 |
-
//
|
170 |
-
// $data = translate_user_role( $data );
|
171 |
-
// $user_roles_names[] = $data;
|
172 |
-
//}
|
173 |
|
174 |
// exclude the new bbPress roles
|
175 |
$user_roles_names = array_diff(
|
@@ -189,7 +203,7 @@ function _mw_adminimize_get_all_user_roles_names() {
|
|
189 |
/**
|
190 |
* return post type
|
191 |
*/
|
192 |
-
function
|
193 |
|
194 |
global $post, $typenow, $current_screen;
|
195 |
|
@@ -231,14 +245,14 @@ function _mw_adminimize_admin_init() {
|
|
231 |
$current_post_type = get_post_type( $post_id );
|
232 |
}
|
233 |
if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
|
234 |
-
$current_post_type =
|
235 |
}
|
236 |
if ( ! $current_post_type ) // set hard to post
|
237 |
{
|
238 |
$current_post_type = 'post';
|
239 |
}
|
240 |
|
241 |
-
// Get all user
|
242 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
243 |
|
244 |
// Get settings.
|
@@ -380,16 +394,11 @@ function _mw_adminimize_admin_init() {
|
|
380 |
|
381 |
}
|
382 |
|
383 |
-
// set
|
384 |
-
add_action( 'admin_head', '_mw_adminimize_set_menu_option', 1 );
|
385 |
-
// global_options
|
386 |
-
add_action( 'admin_head', '_mw_adminimize_set_global_option', 1 );
|
387 |
-
|
388 |
-
// set metabox post option
|
389 |
if ( in_array( $pagenow, $def_post_pages, FALSE ) && in_array( $current_post_type, $def_post_types, FALSE ) ) {
|
390 |
add_action( 'admin_head', '_mw_adminimize_set_metabox_post_option', 1 );
|
391 |
}
|
392 |
-
// set
|
393 |
if ( in_array( $pagenow, $def_page_pages, FALSE ) && in_array( $current_post_type, $def_page_types, FALSE ) ) {
|
394 |
add_action( 'admin_head', '_mw_adminimize_set_metabox_page_option', 1 );
|
395 |
}
|
@@ -413,39 +422,24 @@ function _mw_adminimize_admin_init() {
|
|
413 |
if ( in_array( $pagenow, $widget_pages, FALSE ) ) {
|
414 |
add_action( 'admin_head', '_mw_adminimize_set_widget_option', 1 );
|
415 |
}
|
416 |
-
|
417 |
-
$adminimizeoptions[ 'mw_adminimize_default_menu' ] = $menu;
|
418 |
-
$adminimizeoptions[ 'mw_adminimize_default_submenu' ] = $submenu;
|
419 |
-
}
|
420 |
-
|
421 |
-
/**
|
422 |
-
* Init always with WP
|
423 |
-
*/
|
424 |
-
function _mw_adminimize_init() {
|
425 |
-
|
426 |
-
// change Admin Bar and user Info
|
427 |
-
if ( version_compare( $GLOBALS[ 'wp_version' ], '3.3alpha', '>=' ) ) {
|
428 |
-
_mw_adminimize_set_menu_option_33();
|
429 |
-
} else {
|
430 |
-
add_action( 'admin_head', '_mw_adminimize_set_user_info' );
|
431 |
-
add_action( 'wp_head', '_mw_adminimize_set_user_info' );
|
432 |
-
}
|
433 |
-
|
434 |
}
|
435 |
|
|
|
|
|
|
|
|
|
436 |
// on admin init
|
437 |
-
define( 'MW_ADMIN_FILE', plugin_basename( __FILE__ ) );
|
438 |
if ( is_admin() ) {
|
439 |
add_action( 'admin_init', '_mw_adminimize_textdomain' );
|
440 |
-
add_action( 'admin_init', '_mw_adminimize_admin_init'
|
441 |
add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
|
442 |
add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
|
443 |
}
|
444 |
-
add_action( 'init', '
|
445 |
|
446 |
register_activation_hook( __FILE__, '_mw_adminimize_install' );
|
447 |
-
register_uninstall_hook( __FILE__, '
|
448 |
-
//register_deactivation_hook(__FILE__, '
|
449 |
|
450 |
/**
|
451 |
* Remove the dashboard
|
@@ -464,15 +458,15 @@ function _mw_adminimize_remove_dashboard() {
|
|
464 |
|
465 |
global $menu, $user_ID;
|
466 |
|
467 |
-
$disabled_menu_ =
|
468 |
-
$disabled_submenu_ =
|
469 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
470 |
|
471 |
foreach ( $user_roles as $role ) {
|
472 |
-
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
|
473 |
'mw_adminimize_disabled_menu_' . $role . '_items'
|
474 |
);
|
475 |
-
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
|
476 |
'mw_adminimize_disabled_submenu_' . $role . '_items'
|
477 |
);
|
478 |
}
|
@@ -559,102 +553,6 @@ function _mw_adminimize_remove_dashboard() {
|
|
559 |
}
|
560 |
}
|
561 |
|
562 |
-
/**
|
563 |
-
* Set menu options from database.
|
564 |
-
*/
|
565 |
-
function _mw_adminimize_set_user_info() {
|
566 |
-
|
567 |
-
if ( _mw_adminimize_exclude_settings_page() ) {
|
568 |
-
return;
|
569 |
-
}
|
570 |
-
|
571 |
-
// exclude super admin
|
572 |
-
if ( _mw_adminimize_exclude_super_admin() ) {
|
573 |
-
return;
|
574 |
-
}
|
575 |
-
|
576 |
-
global $user_identity;
|
577 |
-
|
578 |
-
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
579 |
-
$user_roles = _mw_adminimize_get_all_user_roles();
|
580 |
-
|
581 |
-
foreach ( $user_roles as $role ) {
|
582 |
-
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
|
583 |
-
'mw_adminimize_disabled_menu_' . $role . '_items'
|
584 |
-
);
|
585 |
-
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
|
586 |
-
'mw_adminimize_disabled_submenu_' . $role . '_items'
|
587 |
-
);
|
588 |
-
}
|
589 |
-
|
590 |
-
$_mw_adminimize_admin_head = "\n";
|
591 |
-
$_mw_adminimize_user_info = (int) _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
592 |
-
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
593 |
-
|
594 |
-
// change user-info
|
595 |
-
switch ( $_mw_adminimize_user_info ) {
|
596 |
-
case 1:
|
597 |
-
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
598 |
-
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove(); });' . "\n";
|
599 |
-
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
600 |
-
break;
|
601 |
-
case 2:
|
602 |
-
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename(
|
603 |
-
dirname( __FILE__ )
|
604 |
-
) . '/css/mw_small_user_info' . $suffix . '.css" type="text/css" />' . "\n";
|
605 |
-
|
606 |
-
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
607 |
-
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove();';
|
608 |
-
if ( 1 === (int) $_mw_adminimize_ui_redirect ) {
|
609 |
-
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option(
|
610 |
-
'siteurl'
|
611 |
-
) . wp_nonce_url(
|
612 |
-
( '/wp-login.php?action=logout&redirect_to=' ) . get_option( 'siteurl' ), 'log-out'
|
613 |
-
) . '" title="' . esc_attr__( 'Log Out' ) . '">' . esc_attr__(
|
614 |
-
'Log Out'
|
615 |
-
) . '</a></p></div>\' ) });' . "\n";
|
616 |
-
} else {
|
617 |
-
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option(
|
618 |
-
'siteurl'
|
619 |
-
) . wp_nonce_url( ( '/wp-login.php?action=logout' ), 'log-out' ) . '" title="' . esc_attr__(
|
620 |
-
'Log Out'
|
621 |
-
) . '">' . esc_attr__( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
622 |
-
}
|
623 |
-
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
624 |
-
break;
|
625 |
-
case 3:
|
626 |
-
$_mw_adminimize_admin_head .= '<link rel="stylesheet" href="' . WP_PLUGIN_URL . '/' . plugin_basename(
|
627 |
-
dirname( __FILE__ )
|
628 |
-
) . '/css/mw_small_user_info' . $suffix . '.css" type="text/css" />' . "\n";
|
629 |
-
|
630 |
-
$_mw_adminimize_admin_head .= '<script type="text/javascript">' . "\n";
|
631 |
-
$_mw_adminimize_admin_head .= "\t" . 'jQuery(document).ready(function() { jQuery(\'#user_info\' ).remove();';
|
632 |
-
if ( 1 === (int) $_mw_adminimize_ui_redirect ) {
|
633 |
-
$_mw_adminimize_admin_head .= 'jQuery( \'div#wpcontent\' ).after( \'<div id="small_user_info"><p><a href="' . get_option(
|
634 |
-
'siteurl'
|
635 |
-
) . ( '/wp-admin/profile.php' ) . '">' . $user_identity . '</a> | <a href="' . get_option(
|
636 |
-
'siteurl'
|
637 |
-
) . wp_nonce_url(
|
638 |
-
( '/wp-login.php?action=logout&redirect_to=' ) . get_option( 'siteurl' ), 'log-out'
|
639 |
-
) . '" title="' . esc_attr__( 'Log Out' ) . '">' . esc_attr__(
|
640 |
-
'Log Out'
|
641 |
-
) . '</a></p></div>\' ) });' . "\n";
|
642 |
-
} else {
|
643 |
-
$_mw_adminimize_admin_head .= 'jQuery(\'div#wpcontent\' ).after(\'<div id="small_user_info"><p><a href="' . get_option(
|
644 |
-
'siteurl'
|
645 |
-
) . ( '/wp-admin/profile.php' ) . '">' . $user_identity . '</a> | <a href="' . get_option(
|
646 |
-
'siteurl'
|
647 |
-
) . wp_nonce_url( ( '/wp-login.php?action=logout' ), 'log-out' ) . '" title="' . esc_attr__(
|
648 |
-
'Log Out'
|
649 |
-
) . '">' . esc_attr__( 'Log Out' ) . '</a></p></div>\' ) });' . "\n";
|
650 |
-
}
|
651 |
-
$_mw_adminimize_admin_head .= '</script>' . "\n";
|
652 |
-
break;
|
653 |
-
}
|
654 |
-
|
655 |
-
echo $_mw_adminimize_admin_head;
|
656 |
-
}
|
657 |
-
|
658 |
/**
|
659 |
* Set menu for settings
|
660 |
*/
|
@@ -677,74 +575,73 @@ function _mw_adminimize_set_menu_option() {
|
|
677 |
}
|
678 |
|
679 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
680 |
-
$disabled_menu_ =
|
681 |
-
$disabled_submenu_ =
|
682 |
|
683 |
foreach ( $user_roles as $role ) {
|
684 |
-
$disabled_menu_[ $role ] = _mw_adminimize_get_option_value(
|
685 |
'mw_adminimize_disabled_menu_' . $role . '_items'
|
686 |
);
|
687 |
-
$disabled_submenu_[ $role ] = _mw_adminimize_get_option_value(
|
688 |
'mw_adminimize_disabled_submenu_' . $role . '_items'
|
689 |
);
|
690 |
}
|
691 |
|
692 |
$mw_adminimize_menu = array();
|
693 |
$mw_adminimize_submenu = array();
|
|
|
694 |
|
695 |
// Set admin-menu.
|
696 |
foreach ( $user_roles as $role ) {
|
697 |
|
698 |
-
$user
|
699 |
-
|
700 |
-
_mw_adminimize_debug( 'Adminimize Menu Current User', $user );
|
701 |
-
|
702 |
-
if ( is_array( $user->roles )
|
703 |
-
&& in_array( $role, $user->roles, FALSE )
|
704 |
&& _mw_adminimize_current_user_has_role( $role )
|
705 |
) {
|
706 |
-
|
707 |
-
|
|
|
|
|
|
|
|
|
|
|
708 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
}
|
710 |
|
711 |
// Fallback on users.php on all user roles smaller admin.
|
712 |
-
if (
|
713 |
$mw_adminimize_menu[] = 'profile.php';
|
714 |
}
|
715 |
-
_mw_adminimize_debug( 'Adminimize Disabled Menu Items', $mw_adminimize_menu );
|
716 |
-
_mw_adminimize_debug( 'Adminimize Disabled Sub Menu Items', $mw_adminimize_submenu );
|
717 |
-
|
718 |
foreach ( $menu as $key => $item ) {
|
719 |
|
720 |
-
_mw_adminimize_debug( 'Adminimize Menu Item Key', $key );
|
721 |
-
_mw_adminimize_debug( 'Adminimize Menu Item', $item );
|
722 |
-
|
723 |
-
if ( 'index.php' === $item ) {
|
724 |
-
continue;
|
725 |
-
}
|
726 |
-
|
727 |
// Menu
|
728 |
if ( isset( $item[ 2 ] ) ) {
|
|
|
729 |
// Check, if the Menu item in the current user role settings?
|
730 |
-
if (
|
731 |
-
&& _mw_adminimize_in_arrays( array( $key, $item[ 2 ] ), $mw_adminimize_menu )
|
732 |
) {
|
733 |
-
|
734 |
}
|
735 |
|
736 |
// Sub Menu Settings.
|
737 |
-
if ( isset( $submenu ) && ! empty( $submenu[ $
|
738 |
-
foreach ( $submenu[ $
|
739 |
// Check, if is Sub Menu item in the user role settings?
|
740 |
if (
|
741 |
isset( $mw_adminimize_submenu )
|
742 |
&& _mw_adminimize_in_arrays(
|
743 |
-
array( $subitem[ 2 ], $
|
744 |
$mw_adminimize_submenu
|
745 |
)
|
746 |
) {
|
747 |
-
|
|
|
748 |
}
|
749 |
}
|
750 |
}
|
@@ -754,12 +651,10 @@ function _mw_adminimize_set_menu_option() {
|
|
754 |
}
|
755 |
|
756 |
/**
|
757 |
-
*
|
758 |
*/
|
759 |
function _mw_adminimize_set_global_option() {
|
760 |
|
761 |
-
global $_wp_admin_css_colors;
|
762 |
-
|
763 |
// exclude super admin
|
764 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
765 |
return NULL;
|
@@ -772,39 +667,42 @@ function _mw_adminimize_set_global_option() {
|
|
772 |
|
773 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
774 |
$_mw_adminimize_admin_head = '';
|
|
|
|
|
|
|
775 |
|
|
|
776 |
foreach ( $user_roles as $role ) {
|
777 |
-
$disabled_global_option_[ $role ] = _mw_adminimize_get_option_value(
|
778 |
'mw_adminimize_disabled_global_option_' . $role . '_items'
|
779 |
);
|
780 |
}
|
781 |
|
|
|
782 |
foreach ( $user_roles as $role ) {
|
783 |
-
if (
|
784 |
-
$disabled_global_option_[ $role ][ '0' ] = '';
|
785 |
-
}
|
786 |
-
}
|
787 |
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
$user = wp_get_current_user();
|
792 |
-
if ( is_array( $user->roles ) && in_array( $role, $user->roles, FALSE ) ) {
|
793 |
-
if ( _mw_adminimize_current_user_has_role( $role )
|
794 |
-
&& isset( $disabled_global_option_[ $role ] )
|
795 |
-
&& is_array( $disabled_global_option_[ $role ] )
|
796 |
-
) {
|
797 |
-
$global_options = implode( ', ', $disabled_global_option_[ $role ] );
|
798 |
}
|
799 |
}
|
800 |
}
|
801 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
$_wp_admin_css_colors = 0;
|
803 |
}
|
804 |
$_mw_adminimize_admin_head .= '<!-- Set Adminimize global options -->' . "\n";
|
805 |
$_mw_adminimize_admin_head .= '<style type="text/css">' . $global_options . ' {display:none !important;}</style>' . "\n";
|
806 |
|
807 |
-
if (
|
808 |
echo $_mw_adminimize_admin_head;
|
809 |
}
|
810 |
}
|
@@ -1281,16 +1179,15 @@ function _mw_adminimize_get_option_value( $key = FALSE ) {
|
|
1281 |
|
1282 |
// check for use on multisite
|
1283 |
if ( _mw_adminimize_is_active_on_multisite() ) {
|
1284 |
-
$adminimizeoptions = get_site_option( 'mw_adminimize', array() );
|
1285 |
} else {
|
1286 |
-
$adminimizeoptions = get_option( 'mw_adminimize', array() );
|
1287 |
}
|
1288 |
|
1289 |
if ( ! $key ) {
|
1290 |
return $adminimizeoptions;
|
1291 |
}
|
1292 |
|
1293 |
-
/** @var array $adminimizeoptions */
|
1294 |
return array_key_exists( $key, $adminimizeoptions ) ? $adminimizeoptions[ $key ] : NULL;
|
1295 |
}
|
1296 |
|
@@ -1664,7 +1561,7 @@ function _mw_adminimize_update() {
|
|
1664 |
/**
|
1665 |
* Delete options in database
|
1666 |
*/
|
1667 |
-
function
|
1668 |
|
1669 |
delete_site_option( 'mw_adminimize' );
|
1670 |
delete_option( 'mw_adminimize' );
|
7 |
* Description: Visually compresses the administrative 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 all 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.
|
8 |
* Author: Frank Bültge
|
9 |
* Author URI: http://bueltge.de/
|
10 |
+
* Version: 1.10.0
|
11 |
+
* License: GPLv3+
|
12 |
*
|
13 |
* @package WordPress
|
14 |
* @author Frank Bültge <frank@bueltge.de>
|
15 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
16 |
+
* @version 2016-02-19
|
17 |
*/
|
18 |
|
19 |
/**
|
33 |
define( 'FB_ADMINIMIZE_BASENAME', plugin_basename( __FILE__ ) );
|
34 |
define( 'FB_ADMINIMIZE_BASEFOLDER', plugin_basename( dirname( __FILE__ ) ) );
|
35 |
|
36 |
+
/**
|
37 |
+
* Return data from the plugin.
|
38 |
+
*
|
39 |
+
* @param string $value
|
40 |
+
*
|
41 |
+
* @return mixed
|
42 |
+
*/
|
43 |
function _mw_adminimize_get_plugin_data( $value = 'Version' ) {
|
44 |
|
45 |
if ( ! function_exists( 'get_plugin_data' ) ) {
|
46 |
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
47 |
}
|
48 |
|
49 |
+
$plugin_data = get_plugin_data( __FILE__ );
|
50 |
+
|
51 |
return $plugin_data[ $value ];
|
52 |
}
|
53 |
|
92 |
*/
|
93 |
function _mw_adminimize_exclude_settings_page() {
|
94 |
|
95 |
+
if ( ! is_admin() ) {
|
96 |
+
return FALSE;
|
97 |
}
|
98 |
|
99 |
+
if ( ! isset( $_GET[ 'page' ] ) ) {
|
100 |
+
$page = '';
|
101 |
+
} else {
|
102 |
+
$page = esc_attr( $_GET[ 'page' ] );
|
103 |
+
}
|
104 |
|
105 |
+
if ( ! function_exists( 'get_current_screen' ) ) {
|
106 |
+
$screen = $page;
|
107 |
+
} else {
|
108 |
+
$screen = get_current_screen();
|
109 |
}
|
110 |
|
111 |
+
if ( ! isset( $screen->id ) ) {
|
112 |
+
$screen = $page;
|
113 |
+
} else {
|
114 |
+
$screen = $screen->id;
|
115 |
+
}
|
116 |
+
|
117 |
+
// Don't filter on settings page
|
118 |
+
return strpos( $screen, 'adminimize' );
|
119 |
}
|
120 |
|
121 |
/**
|
129 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
130 |
}
|
131 |
|
132 |
+
if ( is_multisite() && is_plugin_active_for_network( FB_ADMINIMIZE_BASENAME ) ) {
|
133 |
return TRUE;
|
134 |
}
|
135 |
|
145 |
*/
|
146 |
function _mw_adminimize_get_all_user_roles() {
|
147 |
|
148 |
+
/** @var $wp_roles WP_Roles */
|
149 |
global $wp_roles;
|
150 |
|
151 |
$user_roles = array();
|
152 |
|
153 |
if ( NULL !== $wp_roles->roles && is_array( $wp_roles->roles ) ) {
|
|
|
154 |
foreach ( $wp_roles->roles as $role => $data ) {
|
155 |
$user_roles[] = $role;
|
156 |
//$data contains caps, maybe for later use..
|
175 |
*/
|
176 |
function _mw_adminimize_get_all_user_roles_names() {
|
177 |
|
178 |
+
/** @var $wp_roles WP_Roles */
|
179 |
global $wp_roles;
|
180 |
+
$user_roles_names = array();
|
181 |
+
|
182 |
+
foreach ( $wp_roles->role_names as $role_name => $data ) {
|
183 |
+
|
184 |
+
$data = translate_user_role( $data );
|
185 |
+
$user_roles_names[] = $data;
|
186 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
|
188 |
// exclude the new bbPress roles
|
189 |
$user_roles_names = array_diff(
|
203 |
/**
|
204 |
* return post type
|
205 |
*/
|
206 |
+
function _mw_adminimize_get_current_post_type() {
|
207 |
|
208 |
global $post, $typenow, $current_screen;
|
209 |
|
245 |
$current_post_type = get_post_type( $post_id );
|
246 |
}
|
247 |
if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
|
248 |
+
$current_post_type = _mw_adminimize_get_current_post_type();
|
249 |
}
|
250 |
if ( ! $current_post_type ) // set hard to post
|
251 |
{
|
252 |
$current_post_type = 'post';
|
253 |
}
|
254 |
|
255 |
+
// Get all user roles.
|
256 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
257 |
|
258 |
// Get settings.
|
394 |
|
395 |
}
|
396 |
|
397 |
+
// set meta-box post option
|
|
|
|
|
|
|
|
|
|
|
398 |
if ( in_array( $pagenow, $def_post_pages, FALSE ) && in_array( $current_post_type, $def_post_types, FALSE ) ) {
|
399 |
add_action( 'admin_head', '_mw_adminimize_set_metabox_post_option', 1 );
|
400 |
}
|
401 |
+
// set meta-box page option
|
402 |
if ( in_array( $pagenow, $def_page_pages, FALSE ) && in_array( $current_post_type, $def_page_types, FALSE ) ) {
|
403 |
add_action( 'admin_head', '_mw_adminimize_set_metabox_page_option', 1 );
|
404 |
}
|
422 |
if ( in_array( $pagenow, $widget_pages, FALSE ) ) {
|
423 |
add_action( 'admin_head', '_mw_adminimize_set_widget_option', 1 );
|
424 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
}
|
426 |
|
427 |
+
// Alternative run the hok admin_head later
|
428 |
+
add_action( 'admin_menu', '_mw_adminimize_set_menu_option', 99999 );
|
429 |
+
// global_options
|
430 |
+
add_action( 'admin_head', '_mw_adminimize_set_global_option', 1 );
|
431 |
// on admin init
|
|
|
432 |
if ( is_admin() ) {
|
433 |
add_action( 'admin_init', '_mw_adminimize_textdomain' );
|
434 |
+
add_action( 'admin_init', '_mw_adminimize_admin_init' );
|
435 |
add_action( 'admin_menu', '_mw_adminimize_add_settings_page' );
|
436 |
add_action( 'admin_menu', '_mw_adminimize_remove_dashboard' );
|
437 |
}
|
438 |
+
add_action( 'init', '_mw_adminimize_set_logout_menu', 2 );
|
439 |
|
440 |
register_activation_hook( __FILE__, '_mw_adminimize_install' );
|
441 |
+
register_uninstall_hook( __FILE__, '_mw_adminimize_uninstall' );
|
442 |
+
//register_deactivation_hook(__FILE__, '_mw_adminimize_uninstall' );
|
443 |
|
444 |
/**
|
445 |
* Remove the dashboard
|
458 |
|
459 |
global $menu, $user_ID;
|
460 |
|
461 |
+
$disabled_menu_ = array();
|
462 |
+
$disabled_submenu_ = array();
|
463 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
464 |
|
465 |
foreach ( $user_roles as $role ) {
|
466 |
+
$disabled_menu_[ $role ] = (array) _mw_adminimize_get_option_value(
|
467 |
'mw_adminimize_disabled_menu_' . $role . '_items'
|
468 |
);
|
469 |
+
$disabled_submenu_[ $role ] = (array) _mw_adminimize_get_option_value(
|
470 |
'mw_adminimize_disabled_submenu_' . $role . '_items'
|
471 |
);
|
472 |
}
|
553 |
}
|
554 |
}
|
555 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
556 |
/**
|
557 |
* Set menu for settings
|
558 |
*/
|
575 |
}
|
576 |
|
577 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
578 |
+
$disabled_menu_ = array();
|
579 |
+
$disabled_submenu_ = array();
|
580 |
|
581 |
foreach ( $user_roles as $role ) {
|
582 |
+
$disabled_menu_[ $role ] = (array) _mw_adminimize_get_option_value(
|
583 |
'mw_adminimize_disabled_menu_' . $role . '_items'
|
584 |
);
|
585 |
+
$disabled_submenu_[ $role ] = (array) _mw_adminimize_get_option_value(
|
586 |
'mw_adminimize_disabled_submenu_' . $role . '_items'
|
587 |
);
|
588 |
}
|
589 |
|
590 |
$mw_adminimize_menu = array();
|
591 |
$mw_adminimize_submenu = array();
|
592 |
+
$user = wp_get_current_user();
|
593 |
|
594 |
// Set admin-menu.
|
595 |
foreach ( $user_roles as $role ) {
|
596 |
|
597 |
+
if ( in_array( $role, $user->roles, FALSE )
|
|
|
|
|
|
|
|
|
|
|
598 |
&& _mw_adminimize_current_user_has_role( $role )
|
599 |
) {
|
600 |
+
// Create array about all items with all affected roles, important for multiple roles.
|
601 |
+
foreach ( $disabled_menu_[ $role ] as $menu_item ) {
|
602 |
+
$mw_adminimize_menu[] = $menu_item;
|
603 |
+
}
|
604 |
+
foreach ( $disabled_submenu_[ $role ] as $submenu_item ) {
|
605 |
+
$mw_adminimize_submenu[] = $submenu_item;
|
606 |
+
}
|
607 |
}
|
608 |
+
|
609 |
+
}
|
610 |
+
|
611 |
+
// Support Multiple Roles for users.
|
612 |
+
if ( 1 < count( $user->roles ) ) {
|
613 |
+
$mw_adminimize_menu = _mw_adminimize_get_duplicate( $mw_adminimize_menu );
|
614 |
+
$mw_adminimize_submenu = _mw_adminimize_get_duplicate( $mw_adminimize_submenu );
|
615 |
}
|
616 |
|
617 |
// Fallback on users.php on all user roles smaller admin.
|
618 |
+
if ( in_array( 'users.php', $mw_adminimize_menu, FALSE ) ) {
|
619 |
$mw_adminimize_menu[] = 'profile.php';
|
620 |
}
|
|
|
|
|
|
|
621 |
foreach ( $menu as $key => $item ) {
|
622 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
// Menu
|
624 |
if ( isset( $item[ 2 ] ) ) {
|
625 |
+
$menu_slug = $item[ 2 ];
|
626 |
// Check, if the Menu item in the current user role settings?
|
627 |
+
if ( in_array( $menu_slug, $mw_adminimize_menu, FALSE )
|
|
|
628 |
) {
|
629 |
+
remove_menu_page( $menu_slug );
|
630 |
}
|
631 |
|
632 |
// Sub Menu Settings.
|
633 |
+
if ( isset( $submenu ) && ! empty( $submenu[ $menu_slug ] ) ) {
|
634 |
+
foreach ( $submenu[ $menu_slug ] as $subindex => $subitem ) {
|
635 |
// Check, if is Sub Menu item in the user role settings?
|
636 |
if (
|
637 |
isset( $mw_adminimize_submenu )
|
638 |
&& _mw_adminimize_in_arrays(
|
639 |
+
array( $subitem[ 2 ], $menu_slug . '__' . $subindex ),
|
640 |
$mw_adminimize_submenu
|
641 |
)
|
642 |
) {
|
643 |
+
remove_submenu_page( $menu_slug, $subitem[ 2 ] );
|
644 |
+
//unset( $submenu[ $menu_slug ][ $subindex ] );
|
645 |
}
|
646 |
}
|
647 |
}
|
651 |
}
|
652 |
|
653 |
/**
|
654 |
+
* Set global options in backend in all areas.
|
655 |
*/
|
656 |
function _mw_adminimize_set_global_option() {
|
657 |
|
|
|
|
|
658 |
// exclude super admin
|
659 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
660 |
return NULL;
|
667 |
|
668 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
669 |
$_mw_adminimize_admin_head = '';
|
670 |
+
$disabled_global_option = array();
|
671 |
+
$disabled_global_option_ = array();
|
672 |
+
$user = wp_get_current_user();
|
673 |
|
674 |
+
// Get settings for each role.
|
675 |
foreach ( $user_roles as $role ) {
|
676 |
+
$disabled_global_option_[ $role ] = (array) _mw_adminimize_get_option_value(
|
677 |
'mw_adminimize_disabled_global_option_' . $role . '_items'
|
678 |
);
|
679 |
}
|
680 |
|
681 |
+
// Write global options in an var.
|
682 |
foreach ( $user_roles as $role ) {
|
683 |
+
if ( in_array( $role, $user->roles, FALSE ) && _mw_adminimize_current_user_has_role( $role ) ) {
|
|
|
|
|
|
|
684 |
|
685 |
+
// Create array about all items with all affected roles, important for multiple roles.
|
686 |
+
foreach ( $disabled_global_option_[ $role ] as $global_item ) {
|
687 |
+
$disabled_global_option[] = $global_item;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
688 |
}
|
689 |
}
|
690 |
}
|
691 |
+
|
692 |
+
// Support Multiple Roles for users.
|
693 |
+
if ( 1 < count( $user->roles ) ) {
|
694 |
+
$disabled_global_option = _mw_adminimize_get_duplicate( $disabled_global_option );
|
695 |
+
}
|
696 |
+
$global_options = implode( ', ', $disabled_global_option );
|
697 |
+
|
698 |
+
if ( 0 !== strpos( $global_options, '#your-profile .form-table fieldset' ) ) {
|
699 |
+
global $_wp_admin_css_colors;
|
700 |
$_wp_admin_css_colors = 0;
|
701 |
}
|
702 |
$_mw_adminimize_admin_head .= '<!-- Set Adminimize global options -->' . "\n";
|
703 |
$_mw_adminimize_admin_head .= '<style type="text/css">' . $global_options . ' {display:none !important;}</style>' . "\n";
|
704 |
|
705 |
+
if ( '' !== $global_options ) {
|
706 |
echo $_mw_adminimize_admin_head;
|
707 |
}
|
708 |
}
|
1179 |
|
1180 |
// check for use on multisite
|
1181 |
if ( _mw_adminimize_is_active_on_multisite() ) {
|
1182 |
+
$adminimizeoptions = (array) get_site_option( 'mw_adminimize', array() );
|
1183 |
} else {
|
1184 |
+
$adminimizeoptions = (array) get_option( 'mw_adminimize', array() );
|
1185 |
}
|
1186 |
|
1187 |
if ( ! $key ) {
|
1188 |
return $adminimizeoptions;
|
1189 |
}
|
1190 |
|
|
|
1191 |
return array_key_exists( $key, $adminimizeoptions ) ? $adminimizeoptions[ $key ] : NULL;
|
1192 |
}
|
1193 |
|
1561 |
/**
|
1562 |
* Delete options in database
|
1563 |
*/
|
1564 |
+
function _mw_adminimize_uninstall() {
|
1565 |
|
1566 |
delete_site_option( 'mw_adminimize' );
|
1567 |
delete_option( 'mw_adminimize' );
|
adminimize_page.php
CHANGED
@@ -56,31 +56,31 @@ function _mw_adminimize_options() {
|
|
56 |
|
57 |
// Uninstall options
|
58 |
if ( ( array_key_exists( '_mw_adminimize_action', $_POST )
|
59 |
-
&& $_POST[ '_mw_adminimize_action' ] === '
|
60 |
-
&& ! array_key_exists( '
|
61 |
|
62 |
) {
|
63 |
$myErrors = new _mw_adminimize_message_class();
|
64 |
$myErrors = '<div id="message" class="error"><p>' . $myErrors->get_error(
|
65 |
-
'
|
66 |
) . '</p></div>';
|
67 |
wp_die( $myErrors );
|
68 |
}
|
69 |
|
70 |
if ( ( array_key_exists( '_mw_adminimize_action', $_POST )
|
71 |
-
&& array_key_exists( '
|
72 |
-
&& $_POST[ '_mw_adminimize_action' ] === '
|
73 |
-
&& $_POST[ '
|
74 |
-
&& $_POST[ '
|
75 |
) {
|
76 |
if ( function_exists( 'current_user_can' ) && current_user_can( 'manage_options' ) ) {
|
77 |
check_admin_referer( 'mw_adminimize_nonce' );
|
78 |
|
79 |
-
|
80 |
|
81 |
$myErrors = new _mw_adminimize_message_class();
|
82 |
$myErrors = '<div id="message" class="updated fade"><p>' . $myErrors->get_error(
|
83 |
-
'
|
84 |
) . '</p></div>';
|
85 |
echo $myErrors;
|
86 |
} else {
|
56 |
|
57 |
// Uninstall options
|
58 |
if ( ( array_key_exists( '_mw_adminimize_action', $_POST )
|
59 |
+
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_uninstall' )
|
60 |
+
&& ! array_key_exists( '_mw_adminimize_uninstall_yes', $_POST )
|
61 |
|
62 |
) {
|
63 |
$myErrors = new _mw_adminimize_message_class();
|
64 |
$myErrors = '<div id="message" class="error"><p>' . $myErrors->get_error(
|
65 |
+
'_mw_adminimize_uninstall_yes'
|
66 |
) . '</p></div>';
|
67 |
wp_die( $myErrors );
|
68 |
}
|
69 |
|
70 |
if ( ( array_key_exists( '_mw_adminimize_action', $_POST )
|
71 |
+
&& array_key_exists( '_mw_adminimize_uninstall_yes', $_POST )
|
72 |
+
&& $_POST[ '_mw_adminimize_action' ] === '_mw_adminimize_uninstall' )
|
73 |
+
&& $_POST[ '_mw_adminimize_uninstall' ]
|
74 |
+
&& $_POST[ '_mw_adminimize_uninstall_yes' ] === '_mw_adminimize_uninstall'
|
75 |
) {
|
76 |
if ( function_exists( 'current_user_can' ) && current_user_can( 'manage_options' ) ) {
|
77 |
check_admin_referer( 'mw_adminimize_nonce' );
|
78 |
|
79 |
+
_mw_adminimize_uninstall();
|
80 |
|
81 |
$myErrors = new _mw_adminimize_message_class();
|
82 |
$myErrors = '<div id="message" class="updated fade"><p>' . $myErrors->get_error(
|
83 |
+
'_mw_adminimize_uninstall'
|
84 |
) . '</p></div>';
|
85 |
echo $myErrors;
|
86 |
} else {
|
css/style.css
CHANGED
@@ -35,18 +35,6 @@ td:first-child {
|
|
35 |
width: 30%;
|
36 |
}
|
37 |
|
38 |
-
td:first-child + td,
|
39 |
-
th:first-child + th,
|
40 |
-
td:first-child + td + td + td,
|
41 |
-
th:first-child + th + th + th,
|
42 |
-
td:first-child + td + td + td + td + td,
|
43 |
-
th:first-child + th + th + th + th + th,
|
44 |
-
td:first-child + td + td + td + td + td + td + td,
|
45 |
-
th:first-child + th + th + th + th + th + th + th,
|
46 |
-
th:first-child + th + th + th + th + th + th + th + th + th {
|
47 |
-
background-color: #ffebe8;
|
48 |
-
}
|
49 |
-
|
50 |
.col1, .col3, .col5,
|
51 |
.col7, .col9, .col11 {
|
52 |
background-color: #ffebe8;
|
@@ -60,4 +48,8 @@ th:first-child + th + th + th + th + th + th + th + th + th {
|
|
60 |
|
61 |
table.usertheme .num {
|
62 |
width: 25px;
|
|
|
|
|
|
|
|
|
63 |
}
|
35 |
width: 30%;
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
.col1, .col3, .col5,
|
39 |
.col7, .col9, .col11 {
|
40 |
background-color: #ffebe8;
|
48 |
|
49 |
table.usertheme .num {
|
50 |
width: 25px;
|
51 |
+
}
|
52 |
+
|
53 |
+
table.config_menu span.awaiting-mod{
|
54 |
+
display: none;
|
55 |
}
|
css/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#minimenu td a{display:block}table th,table tr:nth-child(odd){background:#eee}.widefat thead td input[type=checkbox]{margin:0 2px 0 0;vertical-align:middle}table tbody td span,table tbody th span{float:right}td:first-child+td+td+td+td+td+td+td+td+td:hover,td:first-child+td+td+td+td+td+td+td:hover,td:first-child+td+td+td+td+td:hover,td:first-child+td+td+td:hover,td:first-child+td:hover,tr:hover{background:#DFDFDF!important}td:first-child{width:30%}.col1,.col11,.col3,.col5,.col7,.col9,td:first-child+td,td:first-child+td+td+td,td:first-child+td+td+td+td+td,td:first-child+td+td+td+td+td+td+td,th:first-child+th,th:first-child+th+th+th,th:first-child+th+th+th+th+th,th:first-child+th+th+th+th+th+th+th,th:first-child+th+th+th+th+th+th+th+th+th{background-color:#ffebe8}.widefat td span,.widefat th span{color:#ccc;font-size:x-small;font-weight:lighter}table.usertheme .num{width:25px}
|
1 |
+
#minimenu td a{display:block}table th,table tr:nth-child(odd){background:#eee}.widefat thead td input[type=checkbox]{margin:0 2px 0 0;vertical-align:middle}table tbody td span,table tbody th span{float:right}td:first-child+td+td+td+td+td+td+td+td+td:hover,td:first-child+td+td+td+td+td+td+td:hover,td:first-child+td+td+td+td+td:hover,td:first-child+td+td+td:hover,td:first-child+td:hover,tr:hover{background:#DFDFDF!important}td:first-child{width:30%}.col1,.col11,.col3,.col5,.col7,.col9,td:first-child+td,td:first-child+td+td+td,td:first-child+td+td+td+td+td,td:first-child+td+td+td+td+td+td+td,th:first-child+th,th:first-child+th+th+th,th:first-child+th+th+th+th+th,th:first-child+th+th+th+th+th+th+th,th:first-child+th+th+th+th+th+th+th+th+th{background-color:#ffebe8}.widefat td span,.widefat th span{color:#ccc;font-size:x-small;font-weight:lighter}table.usertheme .num{width:25px}table.config_menu span.awaiting-mod{display:none}
|
inc-options/admin_bar.php
CHANGED
@@ -9,13 +9,18 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
9 |
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
|
10 |
}
|
11 |
|
|
|
12 |
if ( ! isset( $wp_admin_bar ) ) {
|
13 |
$wp_admin_bar = '';
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
16 |
if ( ! isset( $user_roles_names ) ) {
|
17 |
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
|
18 |
-
}
|
19 |
?>
|
20 |
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
21 |
<div class="postbox">
|
@@ -48,7 +53,7 @@ if ( ! isset( $user_roles_names ) ) {
|
|
48 |
<tr>
|
49 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
50 |
<?php
|
51 |
-
foreach ( $
|
52 |
echo '<td class="num">';
|
53 |
echo '<input id="select_all" class="admin_bar_' . $role_slug
|
54 |
. '" type="checkbox" name="" value="" />';
|
@@ -83,12 +88,10 @@ if ( ! isset( $user_roles_names ) ) {
|
|
83 |
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
|
84 |
}
|
85 |
|
86 |
-
$item_class = ' class="form-invalid"';
|
87 |
$item_string = '• ';
|
88 |
$before_title = '<b>';
|
89 |
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
|
90 |
if ( $is_parent ) {
|
91 |
-
$item_class = '';
|
92 |
$item_string = '— ';
|
93 |
$before_title = '';
|
94 |
$after_title = '';
|
@@ -98,12 +101,12 @@ if ( ! isset( $user_roles_names ) ) {
|
|
98 |
foreach ( $user_roles as $role ) {
|
99 |
$checked_user_role_[ $role ] = ( isset( $disabled_admin_bar_option_[ $role ] )
|
100 |
&& in_array(
|
101 |
-
$key, $disabled_admin_bar_option_[ $role ]
|
102 |
)
|
103 |
) ? ' checked="checked"' : '';
|
104 |
}
|
105 |
|
106 |
-
echo '<tr
|
107 |
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
|
108 |
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
|
109 |
foreach ( $user_roles as $role ) {
|
@@ -115,10 +118,9 @@ if ( ! isset( $user_roles_names ) ) {
|
|
115 |
echo '</tr>' . "\n";
|
116 |
$x ++;
|
117 |
}
|
118 |
-
} else {
|
119 |
-
$message = '<span style="font-size: 35px;">☝</span>'
|
120 |
-
. esc_attr__( 'Switch to another back-end page and come back to update the options to get all items of the admin bar in the back end area.', 'adminimize' );
|
121 |
}
|
|
|
|
|
122 |
?>
|
123 |
</tbody>
|
124 |
</table>
|
9 |
die( "Hi there! I'm just a part of plugin, not much I can do when called directly." );
|
10 |
}
|
11 |
|
12 |
+
/** @var $wp_admin_bar WP_Admin_Bar */
|
13 |
if ( ! isset( $wp_admin_bar ) ) {
|
14 |
$wp_admin_bar = '';
|
15 |
}
|
16 |
|
17 |
+
if ( ! isset( $user_roles ) ) {
|
18 |
+
$user_roles = _mw_adminimize_get_all_user_roles();
|
19 |
+
}
|
20 |
+
|
21 |
if ( ! isset( $user_roles_names ) ) {
|
22 |
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
|
23 |
+
}
|
24 |
?>
|
25 |
<div id="poststuff" class="ui-sortable meta-box-sortables">
|
26 |
<div class="postbox">
|
53 |
<tr>
|
54 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
55 |
<?php
|
56 |
+
foreach ( $user_roles as $role_slug ) {
|
57 |
echo '<td class="num">';
|
58 |
echo '<input id="select_all" class="admin_bar_' . $role_slug
|
59 |
. '" type="checkbox" name="" value="" />';
|
88 |
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
|
89 |
}
|
90 |
|
|
|
91 |
$item_string = '• ';
|
92 |
$before_title = '<b>';
|
93 |
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
|
94 |
if ( $is_parent ) {
|
|
|
95 |
$item_string = '— ';
|
96 |
$before_title = '';
|
97 |
$after_title = '';
|
101 |
foreach ( $user_roles as $role ) {
|
102 |
$checked_user_role_[ $role ] = ( isset( $disabled_admin_bar_option_[ $role ] )
|
103 |
&& in_array(
|
104 |
+
$key, $disabled_admin_bar_option_[ $role ], FALSE
|
105 |
)
|
106 |
) ? ' checked="checked"' : '';
|
107 |
}
|
108 |
|
109 |
+
echo '<tr>' . "\n";
|
110 |
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
|
111 |
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
|
112 |
foreach ( $user_roles as $role ) {
|
118 |
echo '</tr>' . "\n";
|
119 |
$x ++;
|
120 |
}
|
|
|
|
|
|
|
121 |
}
|
122 |
+
$message = '<span style="font-size: 35px;">☝</span>'
|
123 |
+
. esc_attr__( 'Switch to another back-end page and come back to update the options to get all items of the admin bar in the back end area.', 'adminimize' );
|
124 |
?>
|
125 |
</tbody>
|
126 |
</table>
|
inc-options/admin_bar_frontend.php
CHANGED
@@ -13,6 +13,10 @@ if ( ! isset( $wp_admin_bar ) ) {
|
|
13 |
$wp_admin_bar = '';
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
16 |
if ( ! isset( $user_roles_names ) ) {
|
17 |
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
|
18 |
}
|
@@ -48,8 +52,7 @@ if ( ! isset( $user_roles_names ) ) {
|
|
48 |
<tr>
|
49 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
50 |
<?php
|
51 |
-
foreach ( $
|
52 |
-
$role_name = strtolower( $role_name );
|
53 |
echo '<td class="num">';
|
54 |
echo '<input id="select_all" class="admin_bar_frontend_' . $role_slug
|
55 |
. '" type="checkbox" value="" />';
|
@@ -85,12 +88,10 @@ if ( ! isset( $user_roles_names ) ) {
|
|
85 |
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
|
86 |
}
|
87 |
|
88 |
-
$item_class = ' class="form-invalid"';
|
89 |
$item_string = '• ';
|
90 |
$before_title = '<b>';
|
91 |
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
|
92 |
if ( $is_parent ) {
|
93 |
-
$item_class = '';
|
94 |
$item_string = '— ';
|
95 |
$before_title = '';
|
96 |
$after_title = '';
|
@@ -105,7 +106,7 @@ if ( ! isset( $user_roles_names ) ) {
|
|
105 |
) ? ' checked="checked"' : '';
|
106 |
}
|
107 |
|
108 |
-
echo '<tr
|
109 |
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
|
110 |
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
|
111 |
foreach ( $user_roles as $role ) {
|
@@ -117,13 +118,13 @@ if ( ! isset( $user_roles_names ) ) {
|
|
117 |
echo '</tr>' . "\n";
|
118 |
$x ++;
|
119 |
}
|
120 |
-
} else {
|
121 |
-
$message = '<span style="font-size: 35px;">☝</span>'
|
122 |
-
. esc_attr__(
|
123 |
-
'You must open the front end of the site in this browser in order for the plugin to discover the Admin Bar items that are currently not visible.',
|
124 |
-
'adminimize'
|
125 |
-
);
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
?>
|
128 |
</tbody>
|
129 |
</table>
|
13 |
$wp_admin_bar = '';
|
14 |
}
|
15 |
|
16 |
+
if ( ! isset( $user_roles ) ) {
|
17 |
+
$user_roles = _mw_adminimize_get_all_user_roles();
|
18 |
+
}
|
19 |
+
|
20 |
if ( ! isset( $user_roles_names ) ) {
|
21 |
$user_roles_names = _mw_adminimize_get_all_user_roles_names();
|
22 |
}
|
52 |
<tr>
|
53 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
54 |
<?php
|
55 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
56 |
echo '<td class="num">';
|
57 |
echo '<input id="select_all" class="admin_bar_frontend_' . $role_slug
|
58 |
. '" type="checkbox" value="" />';
|
88 |
$value->title = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
|
89 |
}
|
90 |
|
|
|
91 |
$item_string = '• ';
|
92 |
$before_title = '<b>';
|
93 |
$after_title = '</b> <small>' . esc_attr__( 'Group', 'adminimize' ) . '</small>';
|
94 |
if ( $is_parent ) {
|
|
|
95 |
$item_string = '— ';
|
96 |
$before_title = '';
|
97 |
$after_title = '';
|
106 |
) ? ' checked="checked"' : '';
|
107 |
}
|
108 |
|
109 |
+
echo '<tr>' . "\n";
|
110 |
echo '<td>'. $before_title . $item_string . strip_tags( $value->title, '<strong><b><em><i>' )
|
111 |
. $after_title . ' <span>(' . $key . ')</span> </td>' . "\n";
|
112 |
foreach ( $user_roles as $role ) {
|
118 |
echo '</tr>' . "\n";
|
119 |
$x ++;
|
120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
+
$message = '<span style="font-size: 35px;">☝</span>'
|
123 |
+
. esc_attr__(
|
124 |
+
'You must open the front end of the site in this browser in order for the plugin to discover the Admin Bar items that are currently not visible.',
|
125 |
+
'adminimize'
|
126 |
+
);
|
127 |
+
|
128 |
?>
|
129 |
</tbody>
|
130 |
</table>
|
inc-options/backend_options.php
CHANGED
@@ -24,7 +24,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
24 |
<?php
|
25 |
if ( _mw_adminimize_is_active_on_multisite() && function_exists( 'is_super_admin' )
|
26 |
) { ?>
|
27 |
-
<tr valign="top"
|
28 |
<td><?php esc_attr_e( 'Exclude Super Admin', 'adminimize' ); ?></td>
|
29 |
<td>
|
30 |
<?php $_mw_adminimize_exclude_super_admin = _mw_adminimize_get_option_value(
|
@@ -72,7 +72,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
72 |
<?php if ( ( $_mw_adminimize_user_info === '' ) || ( $_mw_adminimize_user_info === 1 ) || ( $_mw_adminimize_user_info === 0 ) ) {
|
73 |
$disabled_item = ' disabled="disabled"';
|
74 |
} ?>
|
75 |
-
<tr valign="top"
|
76 |
<td><?php esc_attr_e( 'Change User-Info, redirect to', 'adminimize' ); ?></td>
|
77 |
<td>
|
78 |
<?php $_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value(
|
@@ -189,7 +189,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
189 |
$disabled_item2 = ' disabled="disabled"';
|
190 |
}
|
191 |
?>
|
192 |
-
<tr valign="top"
|
193 |
<td><?php esc_attr_e( 'Dashboard deactivate, redirect to', 'adminimize' ); ?></td>
|
194 |
<td>
|
195 |
<?php $_mw_adminimize_db_redirect = _mw_adminimize_get_option_value(
|
24 |
<?php
|
25 |
if ( _mw_adminimize_is_active_on_multisite() && function_exists( 'is_super_admin' )
|
26 |
) { ?>
|
27 |
+
<tr valign="top">
|
28 |
<td><?php esc_attr_e( 'Exclude Super Admin', 'adminimize' ); ?></td>
|
29 |
<td>
|
30 |
<?php $_mw_adminimize_exclude_super_admin = _mw_adminimize_get_option_value(
|
72 |
<?php if ( ( $_mw_adminimize_user_info === '' ) || ( $_mw_adminimize_user_info === 1 ) || ( $_mw_adminimize_user_info === 0 ) ) {
|
73 |
$disabled_item = ' disabled="disabled"';
|
74 |
} ?>
|
75 |
+
<tr valign="top">
|
76 |
<td><?php esc_attr_e( 'Change User-Info, redirect to', 'adminimize' ); ?></td>
|
77 |
<td>
|
78 |
<?php $_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value(
|
189 |
$disabled_item2 = ' disabled="disabled"';
|
190 |
}
|
191 |
?>
|
192 |
+
<tr valign="top">
|
193 |
<td><?php esc_attr_e( 'Dashboard deactivate, redirect to', 'adminimize' ); ?></td>
|
194 |
<td>
|
195 |
<?php $_mw_adminimize_db_redirect = _mw_adminimize_get_option_value(
|
inc-options/dashboard_options.php
CHANGED
@@ -23,7 +23,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
23 |
// get widgets
|
24 |
$widgets = _mw_adminimize_get_option_value( 'mw_adminimize_dashboard_widgets' );
|
25 |
if ( NULL === $widgets ) {
|
26 |
-
echo '<p
|
27 |
esc_attr_e(
|
28 |
'To complete the installation for Dashboard Widgets you must visit your dashboard once and then come back to Settings > Adminimize to configure who has access to each widget.',
|
29 |
'adminimize'
|
@@ -33,6 +33,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
33 |
?>
|
34 |
|
35 |
<table summary="config_edit_dashboard" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
<thead>
|
37 |
<tr>
|
38 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
@@ -45,11 +54,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
45 |
<tr>
|
46 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
47 |
<?php
|
48 |
-
foreach ( $
|
49 |
-
$role_name = strtolower( $role_name );
|
50 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
51 |
echo '<td class="num">';
|
52 |
-
echo '<input id="select_all" class="dashboard_options_' . $
|
53 |
. '" type="checkbox" name="" value="" />';
|
54 |
echo '</td>' . "\n";
|
55 |
} ?>
|
23 |
// get widgets
|
24 |
$widgets = _mw_adminimize_get_option_value( 'mw_adminimize_dashboard_widgets' );
|
25 |
if ( NULL === $widgets ) {
|
26 |
+
echo '<p>';
|
27 |
esc_attr_e(
|
28 |
'To complete the installation for Dashboard Widgets you must visit your dashboard once and then come back to Settings > Adminimize to configure who has access to each widget.',
|
29 |
'adminimize'
|
33 |
?>
|
34 |
|
35 |
<table summary="config_edit_dashboard" class="widefat">
|
36 |
+
<colgroup>
|
37 |
+
<?php
|
38 |
+
$col = 0;
|
39 |
+
foreach ( $user_roles_names as $role_name ) {
|
40 |
+
echo '<col class="col' . $col . '">' . "\n";
|
41 |
+
$col ++;
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
</colgroup>
|
45 |
<thead>
|
46 |
<tr>
|
47 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
54 |
<tr>
|
55 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
56 |
<?php
|
57 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
58 |
echo '<td class="num">';
|
59 |
+
echo '<input id="select_all" class="dashboard_options_' . $role_slug
|
60 |
. '" type="checkbox" name="" value="" />';
|
61 |
echo '</td>' . "\n";
|
62 |
} ?>
|
inc-options/deinstall_options.php
CHANGED
@@ -15,7 +15,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
15 |
<h3 class="hndle" id="uninstall"><?php esc_attr_e( 'Uninstall Options', 'adminimize' ) ?></h3>
|
16 |
<div class="inside">
|
17 |
|
18 |
-
<p><?php
|
19 |
'Use this option for clean your database from all entries of this plugin. When you deactivate the plugin, the deinstall of the plugin <strong>clean not</strong> all entries in the database.',
|
20 |
'adminimize'
|
21 |
); ?></p>
|
@@ -24,11 +24,11 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
24 |
); ?>">
|
25 |
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
|
26 |
<p id="submitbutton">
|
27 |
-
<input type="submit" name="
|
28 |
'Delete Options', 'adminimize'
|
29 |
); ?> »" class="button-secondary" />
|
30 |
-
<input type="checkbox" name="
|
31 |
-
<input type="hidden" name="_mw_adminimize_action" value="
|
32 |
</p>
|
33 |
</form>
|
34 |
<p>
|
15 |
<h3 class="hndle" id="uninstall"><?php esc_attr_e( 'Uninstall Options', 'adminimize' ) ?></h3>
|
16 |
<div class="inside">
|
17 |
|
18 |
+
<p><?php _e(
|
19 |
'Use this option for clean your database from all entries of this plugin. When you deactivate the plugin, the deinstall of the plugin <strong>clean not</strong> all entries in the database.',
|
20 |
'adminimize'
|
21 |
); ?></p>
|
24 |
); ?>">
|
25 |
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
|
26 |
<p id="submitbutton">
|
27 |
+
<input type="submit" name="_mw_adminimize_uninstall" value="<?php esc_attr_e(
|
28 |
'Delete Options', 'adminimize'
|
29 |
); ?> »" class="button-secondary" />
|
30 |
+
<input type="checkbox" name="_mw_adminimize_uninstall_yes" value="_mw_adminimize_uninstall" />
|
31 |
+
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_uninstall" />
|
32 |
</p>
|
33 |
</form>
|
34 |
<p>
|
inc-options/global_options.php
CHANGED
@@ -19,6 +19,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_edit_post" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
<thead>
|
23 |
<tr>
|
24 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
@@ -31,11 +40,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
31 |
<tr>
|
32 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
33 |
<?php
|
34 |
-
foreach ( $
|
35 |
-
$role_name = strtolower( $role_name );
|
36 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
37 |
echo '<td class="num">';
|
38 |
-
echo '<input id="select_all" class="global_options_' . $
|
39 |
. '" type="checkbox" name="" value="" />';
|
40 |
echo '</td>' . "\n";
|
41 |
} ?>
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_edit_post" class="widefat">
|
22 |
+
<colgroup>
|
23 |
+
<?php
|
24 |
+
$col = 0;
|
25 |
+
foreach ( $user_roles_names as $role_name ) {
|
26 |
+
echo '<col class="col' . $col . '">' . "\n";
|
27 |
+
$col ++;
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
</colgroup>
|
31 |
<thead>
|
32 |
<tr>
|
33 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
40 |
<tr>
|
41 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
42 |
<?php
|
43 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
44 |
echo '<td class="num">';
|
45 |
+
echo '<input id="select_all" class="global_options_' . $role_slug
|
46 |
. '" type="checkbox" name="" value="" />';
|
47 |
echo '</td>' . "\n";
|
48 |
} ?>
|
inc-options/im_export_options.php
CHANGED
@@ -43,7 +43,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
43 |
$_GET[ 'page' ]
|
44 |
); ?>">
|
45 |
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
|
46 |
-
<p><?php
|
47 |
'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
|
48 |
'adminimize'
|
49 |
);
|
43 |
$_GET[ 'page' ]
|
44 |
); ?>">
|
45 |
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
|
46 |
+
<p><?php _e(
|
47 |
'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
|
48 |
'adminimize'
|
49 |
);
|
inc-options/links_options.php
CHANGED
@@ -19,6 +19,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_edit_links" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
<thead>
|
23 |
<tr>
|
24 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
@@ -31,11 +40,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
31 |
<tr>
|
32 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
33 |
<?php
|
34 |
-
foreach ( $
|
35 |
-
$role_name = strtolower( $role_name );
|
36 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
37 |
echo '<td class="num">';
|
38 |
-
echo '<input id="select_all" class="links_options_' . $
|
39 |
. '" type="checkbox" name="" value="" />';
|
40 |
echo '</td>' . "\n";
|
41 |
} ?>
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_edit_links" class="widefat">
|
22 |
+
<colgroup>
|
23 |
+
<?php
|
24 |
+
$col = 0;
|
25 |
+
foreach ( $user_roles_names as $role_name ) {
|
26 |
+
echo '<col class="col' . $col . '">' . "\n";
|
27 |
+
$col ++;
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
</colgroup>
|
31 |
<thead>
|
32 |
<tr>
|
33 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
40 |
<tr>
|
41 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
42 |
<?php
|
43 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
44 |
echo '<td class="num">';
|
45 |
+
echo '<input id="select_all" class="links_options_' . $role_slug
|
46 |
. '" type="checkbox" name="" value="" />';
|
47 |
echo '</td>' . "\n";
|
48 |
} ?>
|
inc-options/menu_options.php
CHANGED
@@ -18,7 +18,16 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
18 |
<div class="inside">
|
19 |
<br class="clear" />
|
20 |
|
21 |
-
<table summary="config_menu" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
<thead>
|
23 |
<tr>
|
24 |
<th><?php esc_attr_e( 'Menu options - Menu, Submenu', 'adminimize' ); ?></th>
|
@@ -32,16 +41,14 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
32 |
<tr>
|
33 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
34 |
<?php
|
35 |
-
foreach ( $
|
36 |
-
$role_name = strtolower( $role_name );
|
37 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
38 |
echo '<td class="num">';
|
39 |
echo '<span class="form-invalid">';
|
40 |
-
echo '<input id="select_all" class="menu_options_' . $
|
41 |
-
|
42 |
echo '</span>';
|
43 |
-
echo '<input id="select_all" class="submenu_options_' . $
|
44 |
-
|
45 |
echo '</td>' . "\n";
|
46 |
} ?>
|
47 |
</tr>
|
@@ -79,8 +86,8 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
79 |
// print menu, submenu
|
80 |
if ( isset( $wp_menu ) && '' !== $wp_menu ) {
|
81 |
|
82 |
-
$i
|
83 |
-
$x
|
84 |
|
85 |
$users = array(
|
86 |
0 => 'Profile',
|
@@ -89,16 +96,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
89 |
3 => '',
|
90 |
4 => 'menu-top',
|
91 |
5 => 'menu-users',
|
92 |
-
6 => 'div'
|
93 |
);
|
94 |
|
95 |
foreach ( $wp_menu as $key => $item ) {
|
96 |
|
97 |
-
|
98 |
-
_mw_adminimize_debug( 'Adminimize Menu Settings: Menu Item', $item );
|
99 |
|
100 |
// non checked items
|
101 |
-
if ( $
|
102 |
$disabled_item_adm_hint = '<abbr title="' . esc_attr__(
|
103 |
'After activate the check box it heavy attitudes will change.', 'adminimize'
|
104 |
) . '" style="cursor:pointer;"> ! </acronym>';
|
@@ -107,7 +113,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
107 |
$disabled_item_adm_hint = '';
|
108 |
}
|
109 |
|
110 |
-
if ( '' !== $
|
111 |
|
112 |
if ( 'wp-menu-separator' === $item[ 4 ] ) {
|
113 |
$item[ 0 ] = 'Separator';
|
@@ -118,28 +124,29 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
118 |
// checkbox checked
|
119 |
$checked_user_role_[ $role ] = '';
|
120 |
if ( isset( $disabled_menu_[ $role ] )
|
121 |
-
|
122 |
-
// Switch to the key and url of menu item.
|
123 |
-
&& _mw_adminimize_in_arrays( array( $key, $item[ 2 ] ), $disabled_menu_[ $role ] )
|
124 |
) {
|
125 |
$checked_user_role_[ $role ] = ' checked="checked"';
|
126 |
}
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
129 |
echo '<tr class="form-invalid">' . "\n";
|
130 |
echo "\t";
|
131 |
-
echo '<
|
132 |
echo '<b>• ' . $item[ 0 ] . '</b> <small>' . esc_attr__(
|
133 |
'Group', 'adminimize'
|
134 |
) . '</small>';
|
135 |
-
echo '<span>'
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
echo '</th>';
|
143 |
|
144 |
foreach ( $user_roles as $role ) {
|
145 |
if ( $role !== 'administrator' ) { // only admin disable items
|
@@ -148,52 +155,54 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
148 |
}
|
149 |
/**
|
150 |
* Switch to key of each Menu item
|
151 |
-
* @since 2016-01-29
|
152 |
*
|
153 |
-
*
|
|
|
154 |
*/
|
155 |
echo "\t" . '<td class="num">' . $disabled_item_adm_hint . '<input id="check_menu'
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
}
|
162 |
echo '</tr>';
|
163 |
|
164 |
// Only for user smaller administrator, change user-Profile-File.
|
165 |
-
if ( 'users.php' === $
|
166 |
$x ++;
|
167 |
-
echo '<tr
|
168 |
echo "\t" . '<th>' . esc_attr__( 'Profile' ) . ' <span>(profile.php)</span> </th>';
|
169 |
foreach ( $user_roles as $role ) {
|
170 |
echo "\t" . '<td class="num"><input disabled="disabled" id="check_menu'
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
}
|
177 |
echo '</tr>';
|
178 |
}
|
179 |
|
180 |
$x ++;
|
181 |
|
182 |
-
if ( ! isset( $wp_submenu[ $
|
183 |
continue;
|
184 |
}
|
185 |
|
186 |
// Loop about Sub Menu items.
|
187 |
-
foreach ( $wp_submenu[ $
|
|
|
188 |
|
189 |
// Special solutions for the Adminimize link, that it not works on settings site.
|
190 |
-
if ( $
|
191 |
//$disabled_subitem_adm = ' disabled="disabled"';
|
192 |
$disabled_subitem_adm_hint = '<abbr title="'
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
|
|
197 |
} else {
|
198 |
$disabled_subitem_adm = '';
|
199 |
$disabled_subitem_adm_hint = '';
|
@@ -204,23 +213,22 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
204 |
// checkbox checked
|
205 |
$checked_user_role_[ $role ] = '';
|
206 |
if ( isset( $disabled_submenu_[ $role ] )
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
) {
|
214 |
$checked_user_role_[ $role ] = ' checked="checked"';
|
215 |
}
|
216 |
}
|
217 |
-
echo '<td> — ' . $subitem[ 0 ] . ' <span>
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
) . ')</span> </td>' . "\n";
|
224 |
|
225 |
foreach ( $user_roles as $role ) {
|
226 |
if ( $role !== 'administrator' ) { // only admin disable items
|
@@ -228,11 +236,10 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
228 |
$disabled_subitem_adm_hint = '';
|
229 |
}
|
230 |
echo '<td class="num">' . $disabled_subitem_adm_hint . '<input id="check_menu' . $role . $x
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
. $item[ 2 ] . '__' . $subkey . '" />' . $disabled_subitem_adm_hint . '</td>' . "\n";
|
236 |
}
|
237 |
echo '</tr>' . "\n";
|
238 |
$x ++;
|
@@ -265,5 +272,4 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
265 |
|
266 |
</div>
|
267 |
</div>
|
268 |
-
</div>
|
269 |
-
|
18 |
<div class="inside">
|
19 |
<br class="clear" />
|
20 |
|
21 |
+
<table summary="config_menu" class="widefat config_menu">
|
22 |
+
<colgroup>
|
23 |
+
<?php
|
24 |
+
$col = 0;
|
25 |
+
foreach ( $user_roles_names as $role_name ) {
|
26 |
+
echo '<col class="col' . $col . '">' . "\n";
|
27 |
+
$col ++;
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
</colgroup>
|
31 |
<thead>
|
32 |
<tr>
|
33 |
<th><?php esc_attr_e( 'Menu options - Menu, Submenu', 'adminimize' ); ?></th>
|
41 |
<tr>
|
42 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
43 |
<?php
|
44 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
45 |
echo '<td class="num">';
|
46 |
echo '<span class="form-invalid">';
|
47 |
+
echo '<input id="select_all" class="menu_options_' . $role_slug
|
48 |
+
. '" type="checkbox" name="" value="" />';
|
49 |
echo '</span>';
|
50 |
+
echo '<input id="select_all" class="submenu_options_' . $role_slug
|
51 |
+
. '" type="checkbox" name="" value="" />';
|
52 |
echo '</td>' . "\n";
|
53 |
} ?>
|
54 |
</tr>
|
86 |
// print menu, submenu
|
87 |
if ( isset( $wp_menu ) && '' !== $wp_menu ) {
|
88 |
|
89 |
+
$i = 0;
|
90 |
+
$x = 0;
|
91 |
|
92 |
$users = array(
|
93 |
0 => 'Profile',
|
96 |
3 => '',
|
97 |
4 => 'menu-top',
|
98 |
5 => 'menu-users',
|
99 |
+
6 => 'div',
|
100 |
);
|
101 |
|
102 |
foreach ( $wp_menu as $key => $item ) {
|
103 |
|
104 |
+
$menu_slug = $item[ 2 ];
|
|
|
105 |
|
106 |
// non checked items
|
107 |
+
if ( $menu_slug === 'options-general.php' ) {
|
108 |
$disabled_item_adm_hint = '<abbr title="' . esc_attr__(
|
109 |
'After activate the check box it heavy attitudes will change.', 'adminimize'
|
110 |
) . '" style="cursor:pointer;"> ! </acronym>';
|
113 |
$disabled_item_adm_hint = '';
|
114 |
}
|
115 |
|
116 |
+
if ( '' !== $menu_slug ) {
|
117 |
|
118 |
if ( 'wp-menu-separator' === $item[ 4 ] ) {
|
119 |
$item[ 0 ] = 'Separator';
|
124 |
// checkbox checked
|
125 |
$checked_user_role_[ $role ] = '';
|
126 |
if ( isset( $disabled_menu_[ $role ] )
|
127 |
+
&& in_array( $menu_slug, $disabled_menu_[ $role ], FALSE )
|
|
|
|
|
128 |
) {
|
129 |
$checked_user_role_[ $role ] = ' checked="checked"';
|
130 |
}
|
131 |
}
|
132 |
|
133 |
+
if ( ! $item[ 0 ] ) {
|
134 |
+
$item[ 0 ] = '<b><i>' . esc_attr__( 'No Title!', 'adminimize' ) . '</i></b>';
|
135 |
+
}
|
136 |
+
|
137 |
echo '<tr class="form-invalid">' . "\n";
|
138 |
echo "\t";
|
139 |
+
echo '<td>';
|
140 |
echo '<b>• ' . $item[ 0 ] . '</b> <small>' . esc_attr__(
|
141 |
'Group', 'adminimize'
|
142 |
) . '</small>';
|
143 |
+
echo '<span>('
|
144 |
+
. preg_replace(
|
145 |
+
'#[%2].*#',
|
146 |
+
'...',
|
147 |
+
htmlentities( $menu_slug )
|
148 |
+
) . ')</span>';
|
149 |
+
echo '</td>';
|
|
|
150 |
|
151 |
foreach ( $user_roles as $role ) {
|
152 |
if ( $role !== 'administrator' ) { // only admin disable items
|
155 |
}
|
156 |
/**
|
157 |
* Switch to key of each Menu item
|
|
|
158 |
*
|
159 |
+
* @since 2016-01-29
|
160 |
+
* Use $key instead of htmlentities( $item[ 2 ] ) in the input field below, attribute value
|
161 |
*/
|
162 |
echo "\t" . '<td class="num">' . $disabled_item_adm_hint . '<input id="check_menu'
|
163 |
+
. $role . $x . '" class="menu_options_'
|
164 |
+
. preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
|
165 |
+
. $disabled_item_adm . $checked_user_role_[ $role ]
|
166 |
+
. ' name="mw_adminimize_disabled_menu_' . $role . '_items[]" value="'
|
167 |
+
. $menu_slug . '" />' . $disabled_item_adm_hint . '</td>' . "\n";
|
168 |
}
|
169 |
echo '</tr>';
|
170 |
|
171 |
// Only for user smaller administrator, change user-Profile-File.
|
172 |
+
if ( 'users.php' === $menu_slug ) {
|
173 |
$x ++;
|
174 |
+
echo '<tr>' . "\n";
|
175 |
echo "\t" . '<th>' . esc_attr__( 'Profile' ) . ' <span>(profile.php)</span> </th>';
|
176 |
foreach ( $user_roles as $role ) {
|
177 |
echo "\t" . '<td class="num"><input disabled="disabled" id="check_menu'
|
178 |
+
. $role . $x . '" class="menu_options_'
|
179 |
+
. preg_replace( '/[^a-z0-9]+/', '', $role )
|
180 |
+
. '" type="checkbox"' . $checked_user_role_[ $role ]
|
181 |
+
. ' name="mw_adminimize_disabled_menu_' . $role
|
182 |
+
. '_items[]" value="profile.php" /></td>' . "\n";
|
183 |
}
|
184 |
echo '</tr>';
|
185 |
}
|
186 |
|
187 |
$x ++;
|
188 |
|
189 |
+
if ( ! isset( $wp_submenu[ $menu_slug ] ) ) {
|
190 |
continue;
|
191 |
}
|
192 |
|
193 |
// Loop about Sub Menu items.
|
194 |
+
foreach ( $wp_submenu[ $menu_slug ] as $subkey => $subitem ) {
|
195 |
+
$submenu_slug = $subitem[ 2 ];
|
196 |
|
197 |
// Special solutions for the Adminimize link, that it not works on settings site.
|
198 |
+
if ( strtolower( $submenu_slug ) === 'adminimize/adminimize.php' ) {
|
199 |
//$disabled_subitem_adm = ' disabled="disabled"';
|
200 |
$disabled_subitem_adm_hint = '<abbr title="'
|
201 |
+
. esc_attr__(
|
202 |
+
'After activate the check box it heavy attitudes will change.',
|
203 |
+
'adminimize'
|
204 |
+
)
|
205 |
+
. '" style="cursor:pointer;"> ! </acronym>';
|
206 |
} else {
|
207 |
$disabled_subitem_adm = '';
|
208 |
$disabled_subitem_adm_hint = '';
|
213 |
// checkbox checked
|
214 |
$checked_user_role_[ $role ] = '';
|
215 |
if ( isset( $disabled_submenu_[ $role ] )
|
216 |
+
// @since 2015-11-11
|
217 |
+
// Switch to custom key and url-slug of menu item.
|
218 |
+
&& _mw_adminimize_in_arrays(
|
219 |
+
array( $menu_slug . '__' . $subkey, $submenu_slug ),
|
220 |
+
$disabled_submenu_[ $role ]
|
221 |
+
)
|
222 |
) {
|
223 |
$checked_user_role_[ $role ] = ' checked="checked"';
|
224 |
}
|
225 |
}
|
226 |
+
echo '<td> — ' . $subitem[ 0 ] . ' <span>(Slug: '
|
227 |
+
. preg_replace(
|
228 |
+
'#[%2].*#',
|
229 |
+
'...',
|
230 |
+
htmlentities( $submenu_slug )
|
231 |
+
) . ')[__' . $subkey . ']</span> </td>' . "\n";
|
|
|
232 |
|
233 |
foreach ( $user_roles as $role ) {
|
234 |
if ( $role !== 'administrator' ) { // only admin disable items
|
236 |
$disabled_subitem_adm_hint = '';
|
237 |
}
|
238 |
echo '<td class="num">' . $disabled_subitem_adm_hint . '<input id="check_menu' . $role . $x
|
239 |
+
. '" class="submenu_options_' . $role . '" type="checkbox"'
|
240 |
+
. $disabled_subitem_adm . $checked_user_role_[ $role ]
|
241 |
+
. ' name="mw_adminimize_disabled_submenu_' . $role . '_items[]" value="'
|
242 |
+
. $menu_slug . '__' . $subkey . '" />' . $disabled_subitem_adm_hint . '</td>' . "\n";
|
|
|
243 |
}
|
244 |
echo '</tr>' . "\n";
|
245 |
$x ++;
|
272 |
|
273 |
</div>
|
274 |
</div>
|
275 |
+
</div>
|
|
inc-options/minimenu.php
CHANGED
@@ -80,7 +80,7 @@ if ( _mw_adminimize_is_active_on_multisite() ) {
|
|
80 |
foreach ( get_post_types( $args ) as $post_type ) {
|
81 |
$post_type_object = get_post_type_object( $post_type );
|
82 |
?>
|
83 |
-
<tr
|
84 |
<td class="row-title">
|
85 |
<a href="#config_edit_<?php echo $post_type; ?>">
|
86 |
<?php esc_attr_e( 'Write options', 'adminimize' );
|
@@ -178,7 +178,7 @@ if ( _mw_adminimize_is_active_on_multisite() ) {
|
|
178 |
<span>
|
179 |
</li>
|
180 |
</ul>
|
181 |
-
<div
|
182 |
<p>
|
183 |
<span style="font-size: 35px; float: left; margin: -5px 3px 0 0;">☝</span><strong>
|
184 |
<?php esc_attr_e(
|
80 |
foreach ( get_post_types( $args ) as $post_type ) {
|
81 |
$post_type_object = get_post_type_object( $post_type );
|
82 |
?>
|
83 |
+
<tr>
|
84 |
<td class="row-title">
|
85 |
<a href="#config_edit_<?php echo $post_type; ?>">
|
86 |
<?php esc_attr_e( 'Write options', 'adminimize' );
|
178 |
<span>
|
179 |
</li>
|
180 |
</ul>
|
181 |
+
<div style="padding:.3em 1em;">
|
182 |
<p>
|
183 |
<span style="font-size: 35px; float: left; margin: -5px 3px 0 0;">☝</span><strong>
|
184 |
<?php esc_attr_e(
|
inc-options/widget_options.php
CHANGED
@@ -19,6 +19,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_widget" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
<thead>
|
23 |
<tr>
|
24 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
@@ -31,11 +40,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
31 |
<tr>
|
32 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
33 |
<?php
|
34 |
-
foreach ( $
|
35 |
-
$role_name = strtolower( $role_name );
|
36 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
37 |
echo '<td class="num">';
|
38 |
-
echo '<input id="select_all" class="widget_options_' . $
|
39 |
. '" type="checkbox" name="" value="" />';
|
40 |
echo '</td>' . "\n";
|
41 |
} ?>
|
19 |
<br class="clear" />
|
20 |
|
21 |
<table summary="config_widget" class="widefat">
|
22 |
+
<colgroup>
|
23 |
+
<?php
|
24 |
+
$col = 0;
|
25 |
+
foreach ( $user_roles_names as $role_name ) {
|
26 |
+
echo '<col class="col' . $col . '">' . "\n";
|
27 |
+
$col ++;
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
</colgroup>
|
31 |
<thead>
|
32 |
<tr>
|
33 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
40 |
<tr>
|
41 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
42 |
<?php
|
43 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
44 |
echo '<td class="num">';
|
45 |
+
echo '<input id="select_all" class="widget_options_' . $role_slug
|
46 |
. '" type="checkbox" name="" value="" />';
|
47 |
echo '</td>' . "\n";
|
48 |
} ?>
|
inc-options/wp_nav_menu_options.php
CHANGED
@@ -18,6 +18,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
18 |
<br class="clear" />
|
19 |
|
20 |
<table summary="config_nav_menu" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<thead>
|
22 |
<tr>
|
23 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
@@ -30,11 +39,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
30 |
<tr>
|
31 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
32 |
<?php
|
33 |
-
foreach ( $
|
34 |
-
$role_name = strtolower( $role_name );
|
35 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
36 |
echo '<td class="num">';
|
37 |
-
echo '<input id="select_all" class="wp_nav_menu_options_' . $
|
38 |
. '" type="checkbox" name="" value="" />';
|
39 |
echo '</td>' . "\n";
|
40 |
} ?>
|
18 |
<br class="clear" />
|
19 |
|
20 |
<table summary="config_nav_menu" class="widefat">
|
21 |
+
<colgroup>
|
22 |
+
<?php
|
23 |
+
$col = 0;
|
24 |
+
foreach ( $user_roles_names as $role_name ) {
|
25 |
+
echo '<col class="col' . $col . '">' . "\n";
|
26 |
+
$col ++;
|
27 |
+
}
|
28 |
+
?>
|
29 |
+
</colgroup>
|
30 |
<thead>
|
31 |
<tr>
|
32 |
<th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
|
39 |
<tr>
|
40 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
41 |
<?php
|
42 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
43 |
echo '<td class="num">';
|
44 |
+
echo '<input id="select_all" class="wp_nav_menu_options_' . $role_slug
|
45 |
. '" type="checkbox" name="" value="" />';
|
46 |
echo '</td>' . "\n";
|
47 |
} ?>
|
inc-options/write_cp_options.php
CHANGED
@@ -27,6 +27,15 @@ foreach ( get_post_types( $args ) as $post_type ) {
|
|
27 |
<br class="clear" />
|
28 |
|
29 |
<table summary="config_edit_post" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
<thead>
|
31 |
<tr>
|
32 |
<th><?php esc_attr_e( 'Write options', 'adminimize' );
|
@@ -40,11 +49,10 @@ foreach ( get_post_types( $args ) as $post_type ) {
|
|
40 |
<tr>
|
41 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
42 |
<?php
|
43 |
-
foreach ( $
|
44 |
-
$role_name = strtolower( $role_name );
|
45 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
46 |
echo '<td class="num">';
|
47 |
-
echo '<input id="select_all" class="write_cp_options_' . $
|
|
|
48 |
. '" type="checkbox" name="" value="" />';
|
49 |
echo '</td>' . "\n";
|
50 |
} ?>
|
@@ -74,15 +82,13 @@ foreach ( get_post_types( $args ) as $post_type ) {
|
|
74 |
);
|
75 |
|
76 |
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
|
77 |
-
if ( post_type_supports( $post_type, $post_type_support ) ) {
|
78 |
-
if ( 'excerpt' === $post_type_support ) {
|
79 |
$post_type_support = 'postexcerpt';
|
80 |
-
}
|
81 |
}
|
82 |
if ( 'page-attributes' === $post_type_support ) {
|
83 |
$post_type_support = 'pageparentdiv';
|
84 |
}
|
85 |
-
if ( 'custom-fields'
|
86 |
$post_type_support = 'postcustom';
|
87 |
}
|
88 |
|
@@ -206,21 +212,22 @@ foreach ( get_post_types( $args ) as $post_type ) {
|
|
206 |
$checked_user_role_[ $post_type . '_' . $role ] = (
|
207 |
isset( $disabled_metaboxes_[ $post_type . '_' . $role ] )
|
208 |
&& in_array(
|
209 |
-
$metabox, $disabled_metaboxes_[ $post_type . '_' . $role ]
|
210 |
)
|
211 |
) ? ' checked="checked"' : '';
|
212 |
}
|
213 |
echo '<tr>' . "\n";
|
214 |
echo '<td>' . $metaboxes_names[ $index ] .
|
215 |
' <span>(' . $metabox . ')</span> </td>' . "\n";
|
216 |
-
foreach ( $user_roles as $
|
217 |
echo '<td class="num">';
|
218 |
echo '<input id="check_' .
|
219 |
-
$post_type . $
|
220 |
-
.
|
221 |
-
|
|
|
222 |
' name="mw_adminimize_disabled_metaboxes_' . $post_type .
|
223 |
-
'_' . $
|
224 |
echo '</td>' . "\n";
|
225 |
}
|
226 |
echo '</tr>' . "\n";
|
@@ -268,23 +275,27 @@ foreach ( get_post_types( $args ) as $post_type ) {
|
|
268 |
'_mw_adminimize_own_options_' . $post_type
|
269 |
); ?></textarea>
|
270 |
<br />
|
|
|
271 |
<?php esc_attr_e(
|
272 |
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
|
273 |
'adminimize'
|
274 |
); ?>
|
|
|
275 |
</td>
|
276 |
<td>
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
<br />
|
|
|
284 |
<?php esc_attr_e(
|
285 |
'Possible IDs or classes. Separate multiple values through a carriage return.',
|
286 |
'adminimize'
|
287 |
); ?>
|
|
|
288 |
</td>
|
289 |
</tr>
|
290 |
</tbody>
|
27 |
<br class="clear" />
|
28 |
|
29 |
<table summary="config_edit_post" class="widefat">
|
30 |
+
<colgroup>
|
31 |
+
<?php
|
32 |
+
$col = 0;
|
33 |
+
foreach ( $user_roles_names as $role_name ) {
|
34 |
+
echo '<col class="col' . $col . '">' . "\n";
|
35 |
+
$col ++;
|
36 |
+
}
|
37 |
+
?>
|
38 |
+
</colgroup>
|
39 |
<thead>
|
40 |
<tr>
|
41 |
<th><?php esc_attr_e( 'Write options', 'adminimize' );
|
49 |
<tr>
|
50 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
51 |
<?php
|
52 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
53 |
echo '<td class="num">';
|
54 |
+
echo '<input id="select_all" class="write_cp_options_' . $post_type .
|
55 |
+
'_' . $role_slug
|
56 |
. '" type="checkbox" name="" value="" />';
|
57 |
echo '</td>' . "\n";
|
58 |
} ?>
|
82 |
);
|
83 |
|
84 |
foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
|
85 |
+
if ( post_type_supports( $post_type, $post_type_support ) && 'excerpt' === $post_type_support ) {
|
|
|
86 |
$post_type_support = 'postexcerpt';
|
|
|
87 |
}
|
88 |
if ( 'page-attributes' === $post_type_support ) {
|
89 |
$post_type_support = 'pageparentdiv';
|
90 |
}
|
91 |
+
if ( 'custom-fields' === $post_type_support ) {
|
92 |
$post_type_support = 'postcustom';
|
93 |
}
|
94 |
|
212 |
$checked_user_role_[ $post_type . '_' . $role ] = (
|
213 |
isset( $disabled_metaboxes_[ $post_type . '_' . $role ] )
|
214 |
&& in_array(
|
215 |
+
$metabox, $disabled_metaboxes_[ $post_type . '_' . $role ], FALSE
|
216 |
)
|
217 |
) ? ' checked="checked"' : '';
|
218 |
}
|
219 |
echo '<tr>' . "\n";
|
220 |
echo '<td>' . $metaboxes_names[ $index ] .
|
221 |
' <span>(' . $metabox . ')</span> </td>' . "\n";
|
222 |
+
foreach ( $user_roles as $role_slug ) {
|
223 |
echo '<td class="num">';
|
224 |
echo '<input id="check_' .
|
225 |
+
$post_type . $role_slug . $x . '" class="write_cp_options_'
|
226 |
+
. $post_type .
|
227 |
+
'_' . $role_slug . '" type="checkbox"' .
|
228 |
+
$checked_user_role_[ $post_type . '_' . $role_slug ] .
|
229 |
' name="mw_adminimize_disabled_metaboxes_' . $post_type .
|
230 |
+
'_' . $role_slug . '_items[]" value="' . $metabox . '" />';
|
231 |
echo '</td>' . "\n";
|
232 |
}
|
233 |
echo '</tr>' . "\n";
|
275 |
'_mw_adminimize_own_options_' . $post_type
|
276 |
); ?></textarea>
|
277 |
<br />
|
278 |
+
<label for="_mw_adminimize_own_options_<?php echo $post_type; ?>">
|
279 |
<?php esc_attr_e(
|
280 |
'Possible nomination for ID or class. Separate multiple nominations through a carriage return.',
|
281 |
'adminimize'
|
282 |
); ?>
|
283 |
+
</label>
|
284 |
</td>
|
285 |
<td>
|
286 |
+
<textarea class="code" name="_mw_adminimize_own_values_<?php echo $post_type; ?>"
|
287 |
+
cols="60" rows="3"
|
288 |
+
id="_mw_adminimize_own_values_<?php echo $post_type; ?>"
|
289 |
+
style="width: 95%;"><?php echo _mw_adminimize_get_option_value(
|
290 |
+
'_mw_adminimize_own_values_' . $post_type
|
291 |
+
); ?></textarea>
|
292 |
<br />
|
293 |
+
<label for="_mw_adminimize_own_values_<?php echo $post_type; ?>">
|
294 |
<?php esc_attr_e(
|
295 |
'Possible IDs or classes. Separate multiple values through a carriage return.',
|
296 |
'adminimize'
|
297 |
); ?>
|
298 |
+
</label>
|
299 |
</td>
|
300 |
</tr>
|
301 |
</tbody>
|
inc-options/write_page_options.php
CHANGED
@@ -17,6 +17,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
17 |
<br class="clear" />
|
18 |
|
19 |
<table summary="config_edit_page" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
<thead>
|
21 |
<tr>
|
22 |
<th><?php esc_attr_e( 'Write options - Page', 'adminimize' ); ?></th>
|
@@ -29,11 +38,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
29 |
<tr>
|
30 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
31 |
<?php
|
32 |
-
foreach ( $
|
33 |
-
$role_name = strtolower( $role_name );
|
34 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
35 |
echo '<td class="num">';
|
36 |
-
echo '<input id="select_all" class="write_page_options_' . $
|
37 |
. '" type="checkbox" name="" value="" />';
|
38 |
echo '</td>' . "\n";
|
39 |
} ?>
|
17 |
<br class="clear" />
|
18 |
|
19 |
<table summary="config_edit_page" class="widefat">
|
20 |
+
<colgroup>
|
21 |
+
<?php
|
22 |
+
$col = 0;
|
23 |
+
foreach ( $user_roles_names as $role_name ) {
|
24 |
+
echo '<col class="col' . $col . '">' . "\n";
|
25 |
+
$col ++;
|
26 |
+
}
|
27 |
+
?>
|
28 |
+
</colgroup>
|
29 |
<thead>
|
30 |
<tr>
|
31 |
<th><?php esc_attr_e( 'Write options - Page', 'adminimize' ); ?></th>
|
38 |
<tr>
|
39 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
40 |
<?php
|
41 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
42 |
echo '<td class="num">';
|
43 |
+
echo '<input id="select_all" class="write_page_options_' . $role_slug
|
44 |
. '" type="checkbox" name="" value="" />';
|
45 |
echo '</td>' . "\n";
|
46 |
} ?>
|
inc-options/write_post_options.php
CHANGED
@@ -20,6 +20,15 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
20 |
<br class="clear" />
|
21 |
|
22 |
<table summary="config_edit_post" class="widefat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<thead>
|
24 |
<tr>
|
25 |
<th><?php esc_attr_e( 'Write options - Post', 'adminimize' ); ?></th>
|
@@ -32,11 +41,9 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
32 |
<tr>
|
33 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
34 |
<?php
|
35 |
-
foreach ( $
|
36 |
-
$role_name = strtolower( $role_name );
|
37 |
-
$role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
|
38 |
echo '<td class="num">';
|
39 |
-
echo '<input id="select_all" class="write_post_options_' . $
|
40 |
. '" type="checkbox" name="" value="" />';
|
41 |
echo '</td>' . "\n";
|
42 |
} ?>
|
@@ -72,7 +79,6 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
72 |
&& 'excerpt' === $post_type_support
|
73 |
) {
|
74 |
$post_type_support = $post_type . 'excerpt';
|
75 |
-
|
76 |
}
|
77 |
if ( 'page-attributes' === $post_type_support ) {
|
78 |
$post_type_support = 'pageparentdiv';
|
@@ -192,7 +198,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
192 |
foreach ( $user_roles as $role ) {
|
193 |
$checked_user_role_[ $role ] = ( isset( $disabled_metaboxes_post_[ $role ] )
|
194 |
&& in_array(
|
195 |
-
$metabox, $disabled_metaboxes_post_[ $role ]
|
196 |
) ) ? ' checked="checked"' : '';
|
197 |
}
|
198 |
echo '<tr>' . "\n";
|
20 |
<br class="clear" />
|
21 |
|
22 |
<table summary="config_edit_post" class="widefat">
|
23 |
+
<colgroup>
|
24 |
+
<?php
|
25 |
+
$col = 0;
|
26 |
+
foreach ( $user_roles_names as $role_name ) {
|
27 |
+
echo '<col class="col' . $col . '">' . "\n";
|
28 |
+
$col ++;
|
29 |
+
}
|
30 |
+
?>
|
31 |
+
</colgroup>
|
32 |
<thead>
|
33 |
<tr>
|
34 |
<th><?php esc_attr_e( 'Write options - Post', 'adminimize' ); ?></th>
|
41 |
<tr>
|
42 |
<td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
|
43 |
<?php
|
44 |
+
foreach ( $user_roles as $role_slug ) {
|
|
|
|
|
45 |
echo '<td class="num">';
|
46 |
+
echo '<input id="select_all" class="write_post_options_' . $role_slug
|
47 |
. '" type="checkbox" name="" value="" />';
|
48 |
echo '</td>' . "\n";
|
49 |
} ?>
|
79 |
&& 'excerpt' === $post_type_support
|
80 |
) {
|
81 |
$post_type_support = $post_type . 'excerpt';
|
|
|
82 |
}
|
83 |
if ( 'page-attributes' === $post_type_support ) {
|
84 |
$post_type_support = 'pageparentdiv';
|
198 |
foreach ( $user_roles as $role ) {
|
199 |
$checked_user_role_[ $role ] = ( isset( $disabled_metaboxes_post_[ $role ] )
|
200 |
&& in_array(
|
201 |
+
$metabox, $disabled_metaboxes_post_[ $role ], FALSE
|
202 |
) ) ? ' checked="checked"' : '';
|
203 |
}
|
204 |
echo '<tr>' . "\n";
|
inc-setup/admin-bar-items.php
CHANGED
@@ -10,198 +10,98 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
10 |
exit;
|
11 |
}
|
12 |
|
13 |
-
//
|
14 |
-
add_action( '
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Get all admin bar items in back end and write in a options of Adminimize settings array
|
17 |
*
|
18 |
-
* @since
|
19 |
-
*
|
20 |
-
* @param $wp_admin_bar
|
21 |
*/
|
22 |
-
function _mw_adminimize_get_admin_bar_nodes(
|
23 |
|
24 |
-
|
|
|
25 |
return;
|
26 |
}
|
27 |
-
|
28 |
if ( _mw_adminimize_exclude_settings_page() ) {
|
29 |
return;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
32 |
// @see: http://codex.wordpress.org/Function_Reference/get_nodes
|
33 |
$all_toolbar_nodes = $wp_admin_bar->get_nodes();
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
// add admin bar array
|
40 |
-
$adminimizeoptions[ 'mw_adminimize_admin_bar_nodes' ] = $all_toolbar_nodes;
|
41 |
-
|
42 |
-
// update options
|
43 |
-
_mw_adminimize_update_option( $adminimizeoptions );
|
44 |
}
|
45 |
-
}
|
46 |
-
|
47 |
-
//add_action( 'wp_before_admin_bar_render', '_mw_adminimize_get_admin_bar_frontend_nodes', 9999 );
|
48 |
-
add_action( 'admin_bar_menu', '_mw_adminimize_get_admin_bar_frontend_nodes', 99999 );
|
49 |
-
/**
|
50 |
-
* Get admin bar items from frontend view.
|
51 |
-
*
|
52 |
-
* @since 2015-07-03
|
53 |
-
*
|
54 |
-
* @param $wp_admin_bar
|
55 |
-
*
|
56 |
-
* @return null
|
57 |
-
*/
|
58 |
-
function _mw_adminimize_get_admin_bar_frontend_nodes( $wp_admin_bar ) {
|
59 |
-
|
60 |
-
if ( ! is_user_logged_in() ) {
|
61 |
-
return;
|
62 |
-
}
|
63 |
-
|
64 |
-
if ( is_admin() ) {
|
65 |
-
return;
|
66 |
-
}
|
67 |
-
|
68 |
-
// Only the right capability allow to get all items and update settings.
|
69 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
70 |
-
return;
|
71 |
-
}
|
72 |
-
// @see: http://codex.wordpress.org/Function_Reference/get_nodes
|
73 |
-
$all_toolbar_nodes = $wp_admin_bar->get_nodes();
|
74 |
|
75 |
if ( $all_toolbar_nodes ) {
|
76 |
// get all options
|
77 |
$adminimizeoptions = _mw_adminimize_get_option_value();
|
78 |
|
79 |
// add admin bar array
|
80 |
-
$adminimizeoptions[
|
81 |
|
82 |
// update options
|
83 |
_mw_adminimize_update_option( $adminimizeoptions );
|
84 |
}
|
85 |
}
|
86 |
|
87 |
-
add_action( 'admin_bar_menu', '_mw_adminimize_change_admin_bar', 99999 );
|
88 |
/**
|
89 |
-
* Remove items in Admin Bar for current role of current active user in
|
90 |
* Exclude Super Admin, if active
|
91 |
* Exclude Settings page of Adminimize
|
92 |
*
|
93 |
* @since 1.8.1 01/10/2013
|
94 |
-
*
|
95 |
-
* @param $wp_admin_bar
|
96 |
-
*
|
97 |
-
* @return null
|
98 |
*/
|
99 |
-
function _mw_adminimize_change_admin_bar(
|
100 |
-
|
101 |
-
// works only for back end admin bar
|
102 |
-
if ( ! is_admin() ) {
|
103 |
-
return;
|
104 |
-
}
|
105 |
|
106 |
-
|
|
|
107 |
return;
|
108 |
}
|
109 |
|
110 |
-
// Exclude super admin
|
111 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
112 |
return;
|
113 |
}
|
114 |
|
115 |
-
$
|
116 |
-
$
|
117 |
-
|
118 |
-
foreach ( $user_roles as $role ) {
|
119 |
-
|
120 |
-
$disabled_admin_bar_option_[ $role ] = _mw_adminimize_get_option_value(
|
121 |
-
'mw_adminimize_disabled_admin_bar_' . $role . '_items'
|
122 |
-
);
|
123 |
-
}
|
124 |
-
|
125 |
-
foreach ( $user_roles as $role ) {
|
126 |
-
|
127 |
-
if ( ! isset( $disabled_admin_bar_option_[ $role ][ '0' ] ) ) {
|
128 |
-
$disabled_admin_bar_option_[ $role ][ '0' ] = '';
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
foreach ( $user_roles as $role ) {
|
133 |
-
$user = wp_get_current_user();
|
134 |
-
|
135 |
-
if ( is_array( $user->roles )
|
136 |
-
&& in_array( $role, $user->roles )
|
137 |
-
&& _mw_adminimize_current_user_has_role( $role )
|
138 |
-
&& is_array( $disabled_admin_bar_option_[ $role ] )
|
139 |
-
) {
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
} // end if user roles
|
146 |
-
}
|
147 |
-
|
148 |
-
}
|
149 |
-
|
150 |
-
add_action( 'admin_bar_menu', '_mw_adminimize_change_admin_bar_frontend', 99999 );
|
151 |
-
/**
|
152 |
-
* Remove items in Admin Bar for current role of current active user in front end area
|
153 |
-
* Exclude Super Admin, if active
|
154 |
-
* Exclude Settings page of Adminimize
|
155 |
-
*
|
156 |
-
* @since 1.8.1 01/10/2013
|
157 |
-
*
|
158 |
-
* @param $wp_admin_bar
|
159 |
-
*
|
160 |
-
* @return null
|
161 |
-
*/
|
162 |
-
function _mw_adminimize_change_admin_bar_frontend( $wp_admin_bar ) {
|
163 |
-
|
164 |
-
// works only for back end admin bar
|
165 |
-
if ( is_admin() ) {
|
166 |
-
return;
|
167 |
-
}
|
168 |
-
|
169 |
-
// Exclude super admin
|
170 |
-
if ( _mw_adminimize_exclude_super_admin() ) {
|
171 |
return;
|
172 |
}
|
|
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
181 |
);
|
182 |
}
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
$disabled_admin_bar_frontend_option_[ $role ][ '0' ] = '';
|
188 |
-
}
|
189 |
}
|
190 |
|
191 |
-
foreach ( $
|
192 |
-
$
|
193 |
-
|
194 |
-
if ( is_array( $user->roles )
|
195 |
-
&& in_array( $role, $user->roles )
|
196 |
-
&& _mw_adminimize_current_user_has_role( $role )
|
197 |
-
&& is_array( $disabled_admin_bar_frontend_option_[ $role ] )
|
198 |
-
) {
|
199 |
-
|
200 |
-
foreach ( $disabled_admin_bar_frontend_option_[ $role ] as $admin_bar_item ) {
|
201 |
-
$wp_admin_bar->remove_node( $admin_bar_item );
|
202 |
-
}
|
203 |
-
|
204 |
-
} // end if user roles
|
205 |
}
|
206 |
-
|
207 |
}
|
10 |
exit;
|
11 |
}
|
12 |
|
13 |
+
// Get all Admin Bar items, different between front- and backend.
|
14 |
+
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_get_admin_bar_nodes', 99999 );
|
15 |
+
// Render the Admin bar new, different between front- and backend.
|
16 |
+
add_action( 'wp_before_admin_bar_render', '_mw_adminimize_change_admin_bar', 99999 );
|
17 |
+
|
18 |
/**
|
19 |
* Get all admin bar items in back end and write in a options of Adminimize settings array
|
20 |
*
|
21 |
+
* @since 1.8.1 01/10/2013
|
|
|
|
|
22 |
*/
|
23 |
+
function _mw_adminimize_get_admin_bar_nodes() {
|
24 |
|
25 |
+
// Only Administrator get all items.
|
26 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
27 |
return;
|
28 |
}
|
29 |
+
;
|
30 |
if ( _mw_adminimize_exclude_settings_page() ) {
|
31 |
return;
|
32 |
}
|
33 |
|
34 |
+
/** @var $wp_admin_bar WP_Admin_Bar */
|
35 |
+
global $wp_admin_bar;
|
36 |
+
|
37 |
// @see: http://codex.wordpress.org/Function_Reference/get_nodes
|
38 |
$all_toolbar_nodes = $wp_admin_bar->get_nodes();
|
39 |
|
40 |
+
$settings = 'mw_adminimize_admin_bar_frontend_nodes';
|
41 |
+
// Set string on settings for Admin Area.
|
42 |
+
if ( is_admin() ){
|
43 |
+
$settings = 'mw_adminimize_admin_bar_nodes';
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
if ( $all_toolbar_nodes ) {
|
47 |
// get all options
|
48 |
$adminimizeoptions = _mw_adminimize_get_option_value();
|
49 |
|
50 |
// add admin bar array
|
51 |
+
$adminimizeoptions[ $settings ] = $all_toolbar_nodes;
|
52 |
|
53 |
// update options
|
54 |
_mw_adminimize_update_option( $adminimizeoptions );
|
55 |
}
|
56 |
}
|
57 |
|
|
|
58 |
/**
|
59 |
+
* Remove items in Admin Bar for current role of current active user in front end area
|
60 |
* Exclude Super Admin, if active
|
61 |
* Exclude Settings page of Adminimize
|
62 |
*
|
63 |
* @since 1.8.1 01/10/2013
|
|
|
|
|
|
|
|
|
64 |
*/
|
65 |
+
function _mw_adminimize_change_admin_bar() {
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
+
// Only for users, there logged in.
|
68 |
+
if ( ! is_user_logged_in() ) {
|
69 |
return;
|
70 |
}
|
71 |
|
72 |
+
// Exclude super admin.
|
73 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
74 |
return;
|
75 |
}
|
76 |
|
77 |
+
/** @var $wp_admin_bar WP_Admin_Bar */
|
78 |
+
global $wp_admin_bar;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
+
// Get current user data.
|
81 |
+
$user = wp_get_current_user();
|
82 |
+
if ( ! $user->roles[ 0 ] ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
return;
|
84 |
}
|
85 |
+
$user_role = $user->roles[ 0 ];
|
86 |
|
87 |
+
// Get Backend Admin Bar settings for the current user role.
|
88 |
+
if ( is_admin() ) {
|
89 |
+
$disabled_admin_bar_option_[ $user_role ] = _mw_adminimize_get_option_value(
|
90 |
+
'mw_adminimize_disabled_admin_bar_' . $user_role . '_items'
|
91 |
+
);
|
92 |
+
} else {
|
93 |
+
// Get Frontend Admin Bar settings for the current user role.
|
94 |
+
$disabled_admin_bar_option_[ $user_role ] = (array) _mw_adminimize_get_option_value(
|
95 |
+
'mw_adminimize_disabled_admin_bar_frontend_' . $user_role . '_items'
|
96 |
);
|
97 |
}
|
98 |
|
99 |
+
// No settings for this role, exit.
|
100 |
+
if ( ! $disabled_admin_bar_option_[ $user_role ] ) {
|
101 |
+
return;
|
|
|
|
|
102 |
}
|
103 |
|
104 |
+
foreach ( $disabled_admin_bar_option_[ $user_role ] as $admin_bar_item ) {
|
105 |
+
$wp_admin_bar->remove_node( $admin_bar_item );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
|
|
107 |
}
|
inc-setup/helping_hands.php
CHANGED
@@ -79,7 +79,7 @@ function _mw_adminimize_current_user_has_role( $role ) {
|
|
79 |
*/
|
80 |
function _mw_adminimize_debug( $description = '' , $data ) {
|
81 |
|
82 |
-
if ( defined( WP_DEBUG_DISPLAY ) && ! WP_DEBUG_DISPLAY ) {
|
83 |
return;
|
84 |
}
|
85 |
|
@@ -93,3 +93,17 @@ function _mw_adminimize_debug( $description = '' , $data ) {
|
|
93 |
|
94 |
echo $output;
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
*/
|
80 |
function _mw_adminimize_debug( $description = '' , $data ) {
|
81 |
|
82 |
+
if ( ! defined( 'WP_DEBUG_DISPLAY' ) || ( defined( 'WP_DEBUG_DISPLAY' ) && ! WP_DEBUG_DISPLAY ) ) {
|
83 |
return;
|
84 |
}
|
85 |
|
93 |
|
94 |
echo $output;
|
95 |
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Return duplicate items from array.
|
99 |
+
*
|
100 |
+
* @param $array
|
101 |
+
*
|
102 |
+
* @return array
|
103 |
+
*/
|
104 |
+
function _mw_adminimize_get_duplicate( $array ) {
|
105 |
+
|
106 |
+
return array_unique(
|
107 |
+
array_diff_assoc( $array, array_unique( $array ) )
|
108 |
+
);
|
109 |
+
}
|
inc-setup/messages.php
CHANGED
@@ -55,10 +55,10 @@ class _mw_adminimize_message_class {
|
|
55 |
'_mw_adminimize_import', esc_attr__( 'All entries in the database were imported.', 'adminimize' )
|
56 |
);
|
57 |
$this->errors->add(
|
58 |
-
'
|
59 |
);
|
60 |
$this->errors->add(
|
61 |
-
'
|
62 |
);
|
63 |
$this->errors->add(
|
64 |
'_mw_adminimize_get_option', esc_attr__( 'Can\'t load menu and submenu.', 'adminimize' )
|
55 |
'_mw_adminimize_import', esc_attr__( 'All entries in the database were imported.', 'adminimize' )
|
56 |
);
|
57 |
$this->errors->add(
|
58 |
+
'_mw_adminimize_uninstall', esc_attr__( 'All entries in the database were deleted.', 'adminimize' )
|
59 |
);
|
60 |
$this->errors->add(
|
61 |
+
'_mw_adminimize_uninstall_yes', esc_attr__( 'Set the checkbox on deinstall-button.', 'adminimize' )
|
62 |
);
|
63 |
$this->errors->add(
|
64 |
'_mw_adminimize_get_option', esc_attr__( 'Can\'t load menu and submenu.', 'adminimize' )
|
inc-setup/remove-admin-bar.php
CHANGED
@@ -1,7 +1,7 @@
|
|
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' ) ) {
|
@@ -17,7 +17,7 @@ add_action( 'init', '_mw_adminimize_remove_admin_bar', 0 );
|
|
17 |
*
|
18 |
* @param array $admin_bar_keys
|
19 |
*/
|
20 |
-
function _mw_adminimize_customize_admin_bar( $admin_bar_keys
|
21 |
|
22 |
if ( ! is_admin_bar_showing() ) {
|
23 |
return;
|
@@ -41,16 +41,15 @@ function _mw_adminimize_remove_my_account() {
|
|
41 |
/**
|
42 |
* Add Logout link to admin abr in wp 3.3
|
43 |
*
|
44 |
-
* @param $wp_admin_bar
|
45 |
*/
|
46 |
function _mw_adminimize_add_logout( $wp_admin_bar ) {
|
47 |
|
48 |
$user_id = get_current_user_id();
|
49 |
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
|
|
50 |
if ( 1 === $_mw_adminimize_ui_redirect ) {
|
51 |
$redirect = '&redirect_to=' . get_option( 'siteurl' );
|
52 |
-
} else {
|
53 |
-
$redirect = '';
|
54 |
}
|
55 |
|
56 |
if ( ! $user_id ) {
|
@@ -67,15 +66,19 @@ function _mw_adminimize_add_logout( $wp_admin_bar ) {
|
|
67 |
);
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
|
71 |
|
72 |
$user_id = get_current_user_id();
|
73 |
$current_user = wp_get_current_user();
|
74 |
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
|
|
75 |
if ( 1 === $_mw_adminimize_ui_redirect ) {
|
76 |
$redirect = '&redirect_to=' . get_option( 'siteurl' );
|
77 |
-
} else {
|
78 |
-
$redirect = '';
|
79 |
}
|
80 |
|
81 |
if ( ! $user_id ) {
|
@@ -94,11 +97,21 @@ function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
|
|
94 |
);
|
95 |
}
|
96 |
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
// exclude super admin
|
100 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
101 |
-
return
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
|
104 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
@@ -112,7 +125,7 @@ function _mw_adminimize_set_menu_option_33() {
|
|
112 |
);
|
113 |
}
|
114 |
|
115 |
-
$_mw_adminimize_user_info
|
116 |
// change user-info
|
117 |
switch ( $_mw_adminimize_user_info ) {
|
118 |
case 1:
|
@@ -131,15 +144,20 @@ function _mw_adminimize_set_menu_option_33() {
|
|
131 |
|
132 |
/**
|
133 |
* Remove Admin Bar
|
|
|
|
|
134 |
*/
|
135 |
function _mw_adminimize_remove_admin_bar() {
|
136 |
|
137 |
// exclude super admin
|
138 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
139 |
-
return
|
140 |
}
|
141 |
|
142 |
-
|
|
|
|
|
|
|
143 |
|
144 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
145 |
|
@@ -155,65 +173,54 @@ function _mw_adminimize_remove_admin_bar() {
|
|
155 |
}
|
156 |
}
|
157 |
|
|
|
158 |
$remove_adminbar = FALSE;
|
159 |
// new 1.7.8
|
160 |
foreach ( $user_roles as $role ) {
|
161 |
-
$user
|
162 |
-
if ( is_array( $user->roles ) && in_array( $role, $user->roles ) ) {
|
163 |
if ( _mw_adminimize_current_user_has_role( $role )
|
164 |
&& isset( $disabled_global_option_[ $role ] )
|
165 |
&& is_array( $disabled_global_option_[ $role ] )
|
|
|
166 |
) {
|
167 |
-
|
168 |
-
$remove_adminbar = TRUE;
|
169 |
-
}
|
170 |
}
|
171 |
}
|
172 |
}
|
173 |
|
174 |
if ( $remove_adminbar ) {
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
wp_deregister_script( 'admin-bar' );
|
179 |
-
wp_deregister_style( 'admin-bar' );
|
180 |
-
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
181 |
-
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
182 |
-
} else {
|
183 |
-
if ( ! is_admin_bar_showing() ) {
|
184 |
-
return FALSE;
|
185 |
-
}
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
padding-top: 0 !important;
|
204 |
}
|
205 |
html.wp-toolbar {
|
206 |
padding-top: 0 !important;
|
207 |
}</style>';"
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
|
212 |
-
|
213 |
-
} // end else version 3.3
|
214 |
-
} // end if $remove_adminbar TRUE
|
215 |
|
216 |
-
|
217 |
}
|
218 |
|
219 |
/**
|
@@ -259,9 +266,10 @@ function _mw_adminimize_restore_links() {
|
|
259 |
?>
|
260 |
<div id="mw_adminimize_login">
|
261 |
<?php
|
262 |
-
wp_get_current_user();
|
263 |
$current_user = wp_get_current_user();
|
264 |
-
if ( empty( $_mw_adminimize_user_info ) || 0 === $_mw_adminimize_user_info
|
|
|
|
|
265 |
if ( ! ( $current_user instanceof WP_User ) ) {
|
266 |
return;
|
267 |
}
|
@@ -280,14 +288,19 @@ function _mw_adminimize_restore_links() {
|
|
280 |
}
|
281 |
}
|
282 |
|
283 |
-
if ( empty( $_mw_adminimize_user_info ) || 0
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
285 |
'Log Out'
|
286 |
) . '</a>';
|
287 |
}
|
288 |
?>
|
289 |
</div>
|
290 |
</div>
|
291 |
-
<?php
|
292 |
}
|
293 |
|
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' ) ) {
|
17 |
*
|
18 |
* @param array $admin_bar_keys
|
19 |
*/
|
20 |
+
function _mw_adminimize_customize_admin_bar( array $admin_bar_keys ) {
|
21 |
|
22 |
if ( ! is_admin_bar_showing() ) {
|
23 |
return;
|
41 |
/**
|
42 |
* Add Logout link to admin abr in wp 3.3
|
43 |
*
|
44 |
+
* @param $wp_admin_bar WP_Admin_Bar
|
45 |
*/
|
46 |
function _mw_adminimize_add_logout( $wp_admin_bar ) {
|
47 |
|
48 |
$user_id = get_current_user_id();
|
49 |
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
50 |
+
$redirect = '';
|
51 |
if ( 1 === $_mw_adminimize_ui_redirect ) {
|
52 |
$redirect = '&redirect_to=' . get_option( 'siteurl' );
|
|
|
|
|
53 |
}
|
54 |
|
55 |
if ( ! $user_id ) {
|
66 |
);
|
67 |
}
|
68 |
|
69 |
+
/**
|
70 |
+
* Add Logout link include user info.
|
71 |
+
*
|
72 |
+
* @param $wp_admin_bar WP_Admin_Bar
|
73 |
+
*/
|
74 |
function _mw_adminimize_add_user_logout( $wp_admin_bar ) {
|
75 |
|
76 |
$user_id = get_current_user_id();
|
77 |
$current_user = wp_get_current_user();
|
78 |
$_mw_adminimize_ui_redirect = (int) _mw_adminimize_get_option_value( '_mw_adminimize_ui_redirect' );
|
79 |
+
$redirect = '';
|
80 |
if ( 1 === $_mw_adminimize_ui_redirect ) {
|
81 |
$redirect = '&redirect_to=' . get_option( 'siteurl' );
|
|
|
|
|
82 |
}
|
83 |
|
84 |
if ( ! $user_id ) {
|
97 |
);
|
98 |
}
|
99 |
|
100 |
+
/**
|
101 |
+
* Change logout, user info link in Admin bar.
|
102 |
+
*
|
103 |
+
* @return null|void
|
104 |
+
*/
|
105 |
+
function _mw_adminimize_set_logout_menu() {
|
106 |
|
107 |
// exclude super admin
|
108 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
109 |
+
return;
|
110 |
+
}
|
111 |
+
|
112 |
+
// Leave the settings screen from Adminimize to see all areas on settings.
|
113 |
+
if ( _mw_adminimize_exclude_settings_page() ) {
|
114 |
+
return;
|
115 |
}
|
116 |
|
117 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
125 |
);
|
126 |
}
|
127 |
|
128 |
+
$_mw_adminimize_user_info = (int) _mw_adminimize_get_option_value( '_mw_adminimize_user_info' );
|
129 |
// change user-info
|
130 |
switch ( $_mw_adminimize_user_info ) {
|
131 |
case 1:
|
144 |
|
145 |
/**
|
146 |
* Remove Admin Bar
|
147 |
+
*
|
148 |
+
* @return null|void
|
149 |
*/
|
150 |
function _mw_adminimize_remove_admin_bar() {
|
151 |
|
152 |
// exclude super admin
|
153 |
if ( _mw_adminimize_exclude_super_admin() ) {
|
154 |
+
return;
|
155 |
}
|
156 |
|
157 |
+
// Leave the settings screen from Adminimize to see all areas on settings.
|
158 |
+
if ( _mw_adminimize_exclude_settings_page() ) {
|
159 |
+
return;
|
160 |
+
}
|
161 |
|
162 |
$user_roles = _mw_adminimize_get_all_user_roles();
|
163 |
|
173 |
}
|
174 |
}
|
175 |
|
176 |
+
$user = wp_get_current_user();
|
177 |
$remove_adminbar = FALSE;
|
178 |
// new 1.7.8
|
179 |
foreach ( $user_roles as $role ) {
|
180 |
+
if ( is_array( $user->roles ) && in_array( $role, $user->roles, FALSE ) ) {
|
|
|
181 |
if ( _mw_adminimize_current_user_has_role( $role )
|
182 |
&& isset( $disabled_global_option_[ $role ] )
|
183 |
&& is_array( $disabled_global_option_[ $role ] )
|
184 |
+
&& _mw_adminimize_recursive_in_array( '.show-admin-bar', $disabled_global_option_[ $role ] )
|
185 |
) {
|
186 |
+
$remove_adminbar = TRUE;
|
|
|
|
|
187 |
}
|
188 |
}
|
189 |
}
|
190 |
|
191 |
if ( $remove_adminbar ) {
|
192 |
+
if ( ! is_admin_bar_showing() ) {
|
193 |
+
return FALSE;
|
194 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
|
196 |
+
add_filter( 'show_admin_bar', '__return_false' );
|
197 |
+
add_filter( 'wp_admin_bar_class', '__return_false' );
|
198 |
+
add_filter( 'show_wp_pointer_admin_bar', '__return_false' );
|
199 |
+
wp_deregister_script( 'admin-bar' );
|
200 |
+
wp_deregister_style( 'admin-bar' );
|
201 |
+
remove_action( 'init', '_wp_admin_bar_init' );
|
202 |
+
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
203 |
+
remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
|
204 |
+
|
205 |
+
// maybe also: 'wp_head'
|
206 |
+
foreach ( array( 'wp_head', 'admin_head' ) as $hook ) {
|
207 |
+
add_action(
|
208 |
+
$hook,
|
209 |
+
create_function(
|
210 |
+
'',
|
211 |
+
"echo '<style>body.admin-bar, body.admin-bar #wpcontent, body.admin-bar #adminmenu {
|
212 |
padding-top: 0 !important;
|
213 |
}
|
214 |
html.wp-toolbar {
|
215 |
padding-top: 0 !important;
|
216 |
}</style>';"
|
217 |
+
)
|
218 |
+
);
|
219 |
+
}
|
220 |
|
221 |
+
add_action( 'in_admin_header', '_mw_adminimize_restore_links' );
|
|
|
|
|
222 |
|
223 |
+
} // end if $remove_adminbar TRUE
|
224 |
}
|
225 |
|
226 |
/**
|
266 |
?>
|
267 |
<div id="mw_adminimize_login">
|
268 |
<?php
|
|
|
269 |
$current_user = wp_get_current_user();
|
270 |
+
if ( empty( $_mw_adminimize_user_info ) || 0 === $_mw_adminimize_user_info
|
271 |
+
|| 3 === $_mw_adminimize_user_info
|
272 |
+
) {
|
273 |
if ( ! ( $current_user instanceof WP_User ) ) {
|
274 |
return;
|
275 |
}
|
288 |
}
|
289 |
}
|
290 |
|
291 |
+
if ( empty( $_mw_adminimize_user_info ) || 0 === $_mw_adminimize_user_info
|
292 |
+
|| 2 === $_mw_adminimize_user_info
|
293 |
+
|| 3 === $_mw_adminimize_user_info
|
294 |
+
) {
|
295 |
+
?> | <?php echo '<a href="' . wp_logout_url() . '" title="' . esc_attr__(
|
296 |
+
'Log Out'
|
297 |
+
) . '">' . esc_attr__(
|
298 |
'Log Out'
|
299 |
) . '</a>';
|
300 |
}
|
301 |
?>
|
302 |
</div>
|
303 |
</div>
|
304 |
+
<?php
|
305 |
}
|
306 |
|
languages/adminimize-de_DE.mo
CHANGED
Binary file
|
languages/adminimize-de_DE.po
CHANGED
@@ -5,15 +5,15 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Development (trunk)\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/adminimize\n"
|
7 |
"POT-Creation-Date: 2016-01-30 23:09+0100\n"
|
8 |
-
"PO-Revision-Date: 2016-
|
9 |
-
"Last-Translator: Frank
|
10 |
"Language-Team: \n"
|
11 |
"Language: de_DE\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
-
"X-Generator: Poedit 1.8.
|
17 |
|
18 |
#: adminimize.php:178
|
19 |
msgid "Keymaster"
|
@@ -170,7 +170,7 @@ msgstr ""
|
|
170 |
|
171 |
#: inc-options/backend_options.php:16 inc-options/minimenu.php:48
|
172 |
msgid "Backend Options"
|
173 |
-
msgstr "Einstellungen
|
174 |
|
175 |
#: inc-options/backend_options.php:28
|
176 |
msgid "Exclude Super Admin"
|
@@ -553,7 +553,7 @@ msgstr "Schreiben Einstellungen - Seiten"
|
|
553 |
#: inc-options/minimenu.php:86 inc-options/write_cp_options.php:22
|
554 |
#: inc-options/write_cp_options.php:32
|
555 |
msgid "Write options"
|
556 |
-
msgstr "Einstellungen
|
557 |
|
558 |
#: inc-options/minimenu.php:106 inc-options/widget_options.php:16
|
559 |
msgid "Widgets"
|
5 |
"Project-Id-Version: Development (trunk)\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/adminimize\n"
|
7 |
"POT-Creation-Date: 2016-01-30 23:09+0100\n"
|
8 |
+
"PO-Revision-Date: 2016-02-03 14:59+0100\n"
|
9 |
+
"Last-Translator: Frank Bueltge\n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: de_DE\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
+
"X-Generator: Poedit 1.8.5\n"
|
17 |
|
18 |
#: adminimize.php:178
|
19 |
msgid "Keymaster"
|
170 |
|
171 |
#: inc-options/backend_options.php:16 inc-options/minimenu.php:48
|
172 |
msgid "Backend Options"
|
173 |
+
msgstr "Backend Einstellungen"
|
174 |
|
175 |
#: inc-options/backend_options.php:28
|
176 |
msgid "Exclude Super Admin"
|
553 |
#: inc-options/minimenu.php:86 inc-options/write_cp_options.php:22
|
554 |
#: inc-options/write_cp_options.php:32
|
555 |
msgid "Write options"
|
556 |
+
msgstr "Schreiben Einstellungen"
|
557 |
|
558 |
#: inc-options/minimenu.php:106 inc-options/widget_options.php:16
|
559 |
msgid "Widgets"
|
languages/adminimize-xx_XX.pot
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
# Copyright (C) 2016 Frank Bültge
|
2 |
-
# This file is distributed under the
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Adminimize 1.9.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/adminimize\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -17,42 +17,40 @@ msgstr ""
|
|
17 |
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
18 |
"Poedit: \n"
|
19 |
|
20 |
-
#: adminimize.php:
|
21 |
msgid "Keymaster"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: adminimize.php:
|
25 |
msgid "Moderator"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: adminimize.php:
|
29 |
msgid "Participant"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: adminimize.php:
|
33 |
msgid "Spectator"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: adminimize.php:
|
37 |
msgid "Blocked"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: adminimize.php:
|
41 |
msgid "Dashboard"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: adminimize.php:
|
45 |
-
#:
|
46 |
-
#: inc-setup/remove-admin-bar.php:64 inc-setup/remove-admin-bar.php:91
|
47 |
-
#: inc-setup/remove-admin-bar.php:284
|
48 |
msgid "Log Out"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: adminimize.php:
|
52 |
msgid "Settings"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: adminimize.php:
|
56 |
msgid "Adminimize Options"
|
57 |
msgstr ""
|
58 |
|
@@ -60,20 +58,20 @@ msgstr ""
|
|
60 |
msgid "Adminimize"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: adminimize.php:
|
64 |
msgid "Cheatin’ uh?"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: adminimize.php:
|
68 |
msgid "Please upload a valid .json file"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: adminimize.php:
|
72 |
msgid "Please upload a file to import"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: inc-options/admin_bar.php:
|
76 |
-
#: inc-options/admin_bar_frontend.php:
|
77 |
#: inc-options/backend_options.php:15 inc-options/dashboard_options.php:16
|
78 |
#: inc-options/deinstall_options.php:14 inc-options/global_options.php:15
|
79 |
#: inc-options/im_export_options.php:14 inc-options/links_options.php:15
|
@@ -86,23 +84,23 @@ msgstr ""
|
|
86 |
msgid "Click to toggle"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: inc-options/admin_bar.php:
|
90 |
msgid "Admin Bar Back end options"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: inc-options/admin_bar.php:
|
94 |
-
#: inc-options/dashboard_options.php:38 inc-options/dashboard_options.php:
|
95 |
-
#: inc-options/global_options.php:24 inc-options/global_options.php:
|
96 |
-
#: inc-options/links_options.php:24 inc-options/links_options.php:
|
97 |
-
#: inc-options/widget_options.php:24 inc-options/widget_options.php:
|
98 |
#: inc-options/wp_nav_menu_options.php:23
|
99 |
-
#: inc-options/wp_nav_menu_options.php:
|
100 |
-
#: inc-options/write_page_options.php:
|
101 |
-
#: inc-options/write_post_options.php:
|
102 |
msgid "Option"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: inc-options/admin_bar.php:
|
106 |
#: inc-options/dashboard_options.php:41 inc-options/global_options.php:27
|
107 |
#: inc-options/links_options.php:27 inc-options/menu_options.php:27
|
108 |
#: inc-options/widget_options.php:27 inc-options/wp_nav_menu_options.php:26
|
@@ -111,7 +109,7 @@ msgstr ""
|
|
111 |
msgid "Deactivate for"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: inc-options/admin_bar.php:
|
115 |
#: inc-options/dashboard_options.php:46 inc-options/global_options.php:32
|
116 |
#: inc-options/links_options.php:32 inc-options/menu_options.php:33
|
117 |
#: inc-options/widget_options.php:32 inc-options/wp_nav_menu_options.php:31
|
@@ -120,49 +118,49 @@ msgstr ""
|
|
120 |
msgid "Select all"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: inc-options/admin_bar.php:
|
124 |
-
#: inc-options/dashboard_options.php:
|
125 |
msgid "No Title!"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: inc-options/admin_bar.php:
|
129 |
-
#: inc-options/menu_options.php:
|
130 |
msgid "Group"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: inc-options/admin_bar.php:
|
134 |
msgid ""
|
135 |
"Switch to another back-end page and come back to update the options to get "
|
136 |
"all items of the admin bar in the back end area."
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: inc-options/admin_bar.php:
|
140 |
-
#: inc-options/backend_options.php:245 inc-options/dashboard_options.php:
|
141 |
-
#: inc-options/global_options.php:
|
142 |
-
#: inc-options/menu_options.php:
|
143 |
-
#: inc-options/wp_nav_menu_options.php:
|
144 |
-
#: inc-options/write_page_options.php:
|
145 |
-
#: inc-options/write_post_options.php:
|
146 |
msgid "Update Options"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: inc-options/admin_bar.php:
|
150 |
-
#: inc-options/backend_options.php:251 inc-options/dashboard_options.php:
|
151 |
-
#: inc-options/deinstall_options.php:36 inc-options/global_options.php:
|
152 |
-
#: inc-options/im_export_options.php:77 inc-options/links_options.php:
|
153 |
-
#: inc-options/menu_options.php:
|
154 |
-
#: inc-options/theme_options.php:121 inc-options/widget_options.php:
|
155 |
-
#: inc-options/wp_nav_menu_options.php:
|
156 |
-
#: inc-options/write_page_options.php:
|
157 |
-
#: inc-options/write_post_options.php:
|
158 |
msgid "scroll to top"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: inc-options/admin_bar_frontend.php:
|
162 |
msgid "Admin Bar Front end Options"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: inc-options/admin_bar_frontend.php:
|
166 |
msgid ""
|
167 |
"You must open the front end of the site in this browser in order for the "
|
168 |
"plugin to discover the Admin Bar items that are currently not visible."
|
@@ -313,44 +311,44 @@ msgid ""
|
|
313 |
"has access to each widget."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: inc-options/dashboard_options.php:
|
317 |
msgid "Your own options"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: inc-options/dashboard_options.php:
|
321 |
-
#: inc-options/links_options.php:
|
322 |
-
#: inc-options/wp_nav_menu_options.php:
|
323 |
-
#: inc-options/write_page_options.php:
|
324 |
-
#: inc-options/write_post_options.php:
|
325 |
msgid "ID or class"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: inc-options/dashboard_options.php:
|
329 |
-
#: inc-options/links_options.php:
|
330 |
-
#: inc-options/wp_nav_menu_options.php:
|
331 |
-
#: inc-options/write_page_options.php:
|
332 |
-
#: inc-options/write_post_options.php:
|
333 |
msgid ""
|
334 |
"It is possible to add your own IDs or classes from elements and tags. You "
|
335 |
"can find IDs and classes with the FireBug Add-on for Firefox. Assign a "
|
336 |
"value and the associate name per line."
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: inc-options/dashboard_options.php:
|
340 |
-
#: inc-options/links_options.php:
|
341 |
-
#: inc-options/wp_nav_menu_options.php:
|
342 |
-
#: inc-options/write_page_options.php:
|
343 |
-
#: inc-options/write_post_options.php:
|
344 |
msgid ""
|
345 |
"Possible nomination for ID or class. Separate multiple nominations through "
|
346 |
"a carriage return."
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: inc-options/dashboard_options.php:
|
350 |
-
#: inc-options/links_options.php:
|
351 |
-
#: inc-options/wp_nav_menu_options.php:
|
352 |
-
#: inc-options/write_page_options.php:
|
353 |
-
#: inc-options/write_post_options.php:
|
354 |
msgid "Possible IDs or classes. Separate multiple values through a carriage return."
|
355 |
msgstr ""
|
356 |
|
@@ -373,34 +371,34 @@ msgstr ""
|
|
373 |
msgid "Global options"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: inc-options/global_options.php:
|
377 |
msgid "Admin Bar"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: inc-options/global_options.php:
|
381 |
msgid "Favorite Actions"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: inc-options/global_options.php:
|
385 |
msgid "Screen-Meta"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: inc-options/global_options.php:
|
389 |
-
#: inc-options/wp_nav_menu_options.php:
|
390 |
-
#: inc-options/write_page_options.php:
|
391 |
-
#: inc-options/write_post_options.php:
|
392 |
msgid "Screen Options"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: inc-options/global_options.php:
|
396 |
msgid "Contextual Help"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: inc-options/global_options.php:
|
400 |
msgid "Admin Color Scheme"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: inc-options/global_options.php:
|
404 |
msgid "Admin Notices"
|
405 |
msgstr ""
|
406 |
|
@@ -448,42 +446,42 @@ msgstr ""
|
|
448 |
msgid "Links options"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: inc-options/links_options.php:
|
452 |
msgid "Name"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: inc-options/links_options.php:
|
456 |
msgid "Web Address"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: inc-options/links_options.php:
|
460 |
msgid "Description"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: inc-options/links_options.php:
|
464 |
-
#: inc-options/write_post_options.php:
|
465 |
msgid "Categories"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: inc-options/links_options.php:
|
469 |
msgid "Target"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: inc-options/links_options.php:
|
473 |
msgid "Link Relationship (XFN)"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: inc-options/links_options.php:
|
477 |
msgid "Advanced"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: inc-options/links_options.php:
|
481 |
-
#: inc-options/write_page_options.php:
|
482 |
-
#: inc-options/write_post_options.php:
|
483 |
msgid "Publish Actions"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: inc-options/links_options.php:
|
487 |
msgid "Your own Link options"
|
488 |
msgstr ""
|
489 |
|
@@ -495,11 +493,11 @@ msgstr ""
|
|
495 |
msgid "Menu options - Menu, Submenu"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: inc-options/menu_options.php:
|
499 |
msgid "After activate the check box it heavy attitudes will change."
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: inc-options/menu_options.php:
|
503 |
msgid "Profile"
|
504 |
msgstr ""
|
505 |
|
@@ -636,245 +634,245 @@ msgstr ""
|
|
636 |
msgid "Role"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: inc-options/widget_options.php:
|
640 |
-
#: inc-options/write_cp_options.php:
|
641 |
-
#: inc-options/write_post_options.php:
|
642 |
msgid "Help"
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: inc-options/widget_options.php:
|
646 |
msgid "Available Widgets"
|
647 |
msgstr ""
|
648 |
|
649 |
-
#: inc-options/widget_options.php:
|
650 |
msgid "Inactive Sidebar (not used)"
|
651 |
msgstr ""
|
652 |
|
653 |
-
#: inc-options/widget_options.php:
|
654 |
msgid "Inactive Widgets"
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: inc-options/widget_options.php:
|
658 |
msgid "Your own Widget options"
|
659 |
msgstr ""
|
660 |
|
661 |
-
#: inc-options/wp_nav_menu_options.php:
|
662 |
-
#: inc-options/wp_nav_menu_options.php:
|
663 |
msgid "Theme Locations"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: inc-options/wp_nav_menu_options.php:
|
667 |
msgid "Custom Links"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: inc-options/wp_nav_menu_options.php:
|
671 |
msgid "Add menu"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: inc-options/wp_nav_menu_options.php:
|
675 |
msgid "Your own Nav Menu options"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: inc-options/write_cp_options.php:
|
679 |
-
#: inc-options/write_post_options.php:
|
680 |
msgid "Permalink"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: inc-options/write_cp_options.php:
|
684 |
-
#: inc-options/write_post_options.php:
|
685 |
-
#: inc-options/write_post_options.php:
|
686 |
msgid "Tags"
|
687 |
msgstr ""
|
688 |
|
689 |
-
#: inc-options/write_cp_options.php:
|
690 |
msgid "Format"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: inc-options/write_cp_options.php:
|
694 |
msgid "Add New Category"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: inc-options/write_cp_options.php:
|
698 |
msgid "Password Protect This Post"
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: inc-options/write_cp_options.php:
|
702 |
msgid "Related, Shortcuts"
|
703 |
msgstr ""
|
704 |
|
705 |
-
#: inc-options/write_cp_options.php:
|
706 |
-
#: inc-options/write_post_options.php:
|
707 |
msgid "Messages"
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: inc-options/write_cp_options.php:
|
711 |
-
#: inc-options/write_post_options.php:
|
712 |
msgid "h2: Advanced Options"
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: inc-options/write_cp_options.php:
|
716 |
-
#: inc-options/write_post_options.php:
|
717 |
msgid "Media Buttons (all)"
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: inc-options/write_cp_options.php:
|
721 |
-
#: inc-options/write_post_options.php:
|
722 |
msgid "Word count"
|
723 |
msgstr ""
|
724 |
|
725 |
-
#: inc-options/write_cp_options.php:
|
726 |
msgid "Post Slug"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: inc-options/write_cp_options.php:
|
730 |
-
#: inc-options/write_post_options.php:
|
731 |
msgid "Discussion"
|
732 |
msgstr ""
|
733 |
|
734 |
-
#: inc-options/write_cp_options.php:
|
735 |
-
#: inc-options/write_post_options.php:
|
736 |
msgid "HTML Editor Button"
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: inc-options/write_cp_options.php:
|
740 |
msgid "Post Thumbnail"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: inc-options/write_cp_options.php:
|
744 |
-
#: inc-options/write_post_options.php:
|
745 |
msgid "Quick Edit Link"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: inc-options/write_cp_options.php:
|
749 |
-
#: inc-options/write_cp_options.php:
|
750 |
-
#: inc-options/write_page_options.php:
|
751 |
-
#: inc-options/write_page_options.php:
|
752 |
-
#: inc-options/write_page_options.php:
|
753 |
-
#: inc-options/write_post_options.php:
|
754 |
-
#: inc-options/write_post_options.php:
|
755 |
-
#: inc-options/write_post_options.php:
|
756 |
-
#: inc-options/write_post_options.php:
|
757 |
msgid "QE"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: inc-options/write_cp_options.php:
|
761 |
-
#: inc-options/write_post_options.php:
|
762 |
msgid "Inline Edit Left"
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: inc-options/write_cp_options.php:
|
766 |
-
#: inc-options/write_post_options.php:
|
767 |
msgid "All Labels"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: inc-options/write_cp_options.php:
|
771 |
-
#: inc-options/write_post_options.php:
|
772 |
msgid "Author"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: inc-options/write_cp_options.php:
|
776 |
-
#: inc-options/write_post_options.php:
|
777 |
msgid "Password and Private"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: inc-options/write_cp_options.php:
|
781 |
msgid "Inline Edit Center"
|
782 |
msgstr ""
|
783 |
|
784 |
-
#: inc-options/write_cp_options.php:
|
785 |
msgid "Categories Title"
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: inc-options/write_cp_options.php:
|
789 |
msgid "Categories List"
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: inc-options/write_cp_options.php:
|
793 |
-
#: inc-options/write_post_options.php:
|
794 |
msgid "Inline Edit Right"
|
795 |
msgstr ""
|
796 |
|
797 |
-
#: inc-options/write_cp_options.php:
|
798 |
msgid "Status, Sticky"
|
799 |
msgstr ""
|
800 |
|
801 |
-
#: inc-options/write_cp_options.php:
|
802 |
-
#: inc-options/write_post_options.php:
|
803 |
msgid "Cancel/Save Button"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: inc-options/write_cp_options.php:
|
807 |
msgid "Your own %s options"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: inc-options/write_page_options.php:
|
811 |
-
#: inc-options/write_post_options.php:
|
812 |
msgid "Title"
|
813 |
msgstr ""
|
814 |
|
815 |
-
#: inc-options/write_page_options.php:
|
816 |
msgid "Custom Fields"
|
817 |
msgstr ""
|
818 |
|
819 |
-
#: inc-options/write_page_options.php:
|
820 |
msgid "Comments & Pings"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: inc-options/write_page_options.php:
|
824 |
-
#: inc-options/write_page_options.php:
|
825 |
-
#: inc-options/write_post_options.php:
|
826 |
msgid "Date"
|
827 |
msgstr ""
|
828 |
|
829 |
-
#: inc-options/write_page_options.php:
|
830 |
msgid "Password Protect This Page"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: inc-options/write_page_options.php:
|
834 |
msgid "Attributes"
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: inc-options/write_page_options.php:
|
838 |
msgid "Page Template"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: inc-options/write_page_options.php:
|
842 |
msgid "Page Order"
|
843 |
msgstr ""
|
844 |
|
845 |
-
#: inc-options/write_page_options.php:
|
846 |
msgid "Page Author"
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: inc-options/write_page_options.php:
|
850 |
msgid "Page Revisions"
|
851 |
msgstr ""
|
852 |
|
853 |
-
#: inc-options/write_page_options.php:
|
854 |
msgid "Related"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: inc-options/write_page_options.php:
|
858 |
msgid "Page Slug"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: inc-options/write_page_options.php:
|
862 |
msgid "Page Image"
|
863 |
msgstr ""
|
864 |
|
865 |
-
#: inc-options/write_page_options.php:
|
866 |
msgid "Parent, Order, Template"
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: inc-options/write_page_options.php:
|
870 |
msgid "Status"
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: inc-options/write_page_options.php:
|
874 |
msgid "Your own page options"
|
875 |
msgstr ""
|
876 |
|
877 |
-
#: inc-options/write_post_options.php:
|
878 |
msgid "Your own post options"
|
879 |
msgstr ""
|
880 |
|
@@ -914,11 +912,11 @@ msgstr ""
|
|
914 |
msgid "Load user data to themes was successful."
|
915 |
msgstr ""
|
916 |
|
917 |
-
#: inc-setup/remove-admin-bar.php:
|
918 |
msgid "Network Admin"
|
919 |
msgstr ""
|
920 |
|
921 |
-
#: inc-setup/remove-admin-bar.php:
|
922 |
msgid "Site Admin"
|
923 |
msgstr ""
|
924 |
|
1 |
# Copyright (C) 2016 Frank Bültge
|
2 |
+
# This file is distributed under the GPLv3+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Adminimize 1.9.3-RC2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/adminimize\n"
|
7 |
+
"POT-Creation-Date: 2016-02-04 13:09:09+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
18 |
"Poedit: \n"
|
19 |
|
20 |
+
#: adminimize.php:180
|
21 |
msgid "Keymaster"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: adminimize.php:181
|
25 |
msgid "Moderator"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: adminimize.php:182
|
29 |
msgid "Participant"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: adminimize.php:183
|
33 |
msgid "Spectator"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: adminimize.php:184
|
37 |
msgid "Blocked"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: adminimize.php:520
|
41 |
msgid "Dashboard"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: adminimize.php:1038 inc-setup/remove-admin-bar.php:63
|
45 |
+
#: inc-setup/remove-admin-bar.php:94 inc-setup/remove-admin-bar.php:287
|
|
|
|
|
46 |
msgid "Log Out"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: adminimize.php:1091
|
50 |
msgid "Settings"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: adminimize.php:1104
|
54 |
msgid "Adminimize Options"
|
55 |
msgstr ""
|
56 |
|
58 |
msgid "Adminimize"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: adminimize.php:1140
|
62 |
msgid "Cheatin’ uh?"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: adminimize.php:1647
|
66 |
msgid "Please upload a valid .json file"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: adminimize.php:1653
|
70 |
msgid "Please upload a file to import"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: inc-options/admin_bar.php:27 inc-options/admin_bar.php:28
|
74 |
+
#: inc-options/admin_bar_frontend.php:26 inc-options/admin_bar_frontend.php:27
|
75 |
#: inc-options/backend_options.php:15 inc-options/dashboard_options.php:16
|
76 |
#: inc-options/deinstall_options.php:14 inc-options/global_options.php:15
|
77 |
#: inc-options/im_export_options.php:14 inc-options/links_options.php:15
|
84 |
msgid "Click to toggle"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: inc-options/admin_bar.php:29
|
88 |
msgid "Admin Bar Back end options"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: inc-options/admin_bar.php:46 inc-options/admin_bar_frontend.php:45
|
92 |
+
#: inc-options/dashboard_options.php:38 inc-options/dashboard_options.php:145
|
93 |
+
#: inc-options/global_options.php:24 inc-options/global_options.php:125
|
94 |
+
#: inc-options/links_options.php:24 inc-options/links_options.php:126
|
95 |
+
#: inc-options/widget_options.php:24 inc-options/widget_options.php:138
|
96 |
#: inc-options/wp_nav_menu_options.php:23
|
97 |
+
#: inc-options/wp_nav_menu_options.php:153 inc-options/write_cp_options.php:247
|
98 |
+
#: inc-options/write_page_options.php:222
|
99 |
+
#: inc-options/write_post_options.php:225
|
100 |
msgid "Option"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: inc-options/admin_bar.php:49 inc-options/admin_bar_frontend.php:48
|
104 |
#: inc-options/dashboard_options.php:41 inc-options/global_options.php:27
|
105 |
#: inc-options/links_options.php:27 inc-options/menu_options.php:27
|
106 |
#: inc-options/widget_options.php:27 inc-options/wp_nav_menu_options.php:26
|
109 |
msgid "Deactivate for"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: inc-options/admin_bar.php:54 inc-options/admin_bar_frontend.php:53
|
113 |
#: inc-options/dashboard_options.php:46 inc-options/global_options.php:32
|
114 |
#: inc-options/links_options.php:32 inc-options/menu_options.php:33
|
115 |
#: inc-options/widget_options.php:32 inc-options/wp_nav_menu_options.php:31
|
118 |
msgid "Select all"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: inc-options/admin_bar.php:88 inc-options/admin_bar_frontend.php:88
|
122 |
+
#: inc-options/dashboard_options.php:112
|
123 |
msgid "No Title!"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: inc-options/admin_bar.php:93 inc-options/admin_bar_frontend.php:93
|
127 |
+
#: inc-options/menu_options.php:127
|
128 |
msgid "Group"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: inc-options/admin_bar.php:123
|
132 |
msgid ""
|
133 |
"Switch to another back-end page and come back to update the options to get "
|
134 |
"all items of the admin bar in the back end area."
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: inc-options/admin_bar.php:131 inc-options/admin_bar_frontend.php:136
|
138 |
+
#: inc-options/backend_options.php:245 inc-options/dashboard_options.php:191
|
139 |
+
#: inc-options/global_options.php:164 inc-options/links_options.php:163
|
140 |
+
#: inc-options/menu_options.php:250 inc-options/widget_options.php:175
|
141 |
+
#: inc-options/wp_nav_menu_options.php:190 inc-options/write_cp_options.php:299
|
142 |
+
#: inc-options/write_page_options.php:259
|
143 |
+
#: inc-options/write_post_options.php:262
|
144 |
msgid "Update Options"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: inc-options/admin_bar.php:138 inc-options/admin_bar_frontend.php:143
|
148 |
+
#: inc-options/backend_options.php:251 inc-options/dashboard_options.php:199
|
149 |
+
#: inc-options/deinstall_options.php:36 inc-options/global_options.php:171
|
150 |
+
#: inc-options/im_export_options.php:77 inc-options/links_options.php:169
|
151 |
+
#: inc-options/menu_options.php:256 inc-options/minimenu.php:203
|
152 |
+
#: inc-options/theme_options.php:121 inc-options/widget_options.php:181
|
153 |
+
#: inc-options/wp_nav_menu_options.php:196 inc-options/write_cp_options.php:305
|
154 |
+
#: inc-options/write_page_options.php:264
|
155 |
+
#: inc-options/write_post_options.php:268
|
156 |
msgid "scroll to top"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: inc-options/admin_bar_frontend.php:28 inc-options/minimenu.php:42
|
160 |
msgid "Admin Bar Front end Options"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: inc-options/admin_bar_frontend.php:123
|
164 |
msgid ""
|
165 |
"You must open the front end of the site in this browser in order for the "
|
166 |
"plugin to discover the Admin Bar items that are currently not visible."
|
311 |
"has access to each widget."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: inc-options/dashboard_options.php:141 inc-options/global_options.php:121
|
315 |
msgid "Your own options"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: inc-options/dashboard_options.php:143 inc-options/global_options.php:123
|
319 |
+
#: inc-options/links_options.php:124 inc-options/widget_options.php:136
|
320 |
+
#: inc-options/wp_nav_menu_options.php:151 inc-options/write_cp_options.php:244
|
321 |
+
#: inc-options/write_page_options.php:220
|
322 |
+
#: inc-options/write_post_options.php:223
|
323 |
msgid "ID or class"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: inc-options/dashboard_options.php:151 inc-options/global_options.php:131
|
327 |
+
#: inc-options/links_options.php:132 inc-options/widget_options.php:144
|
328 |
+
#: inc-options/wp_nav_menu_options.php:159 inc-options/write_cp_options.php:254
|
329 |
+
#: inc-options/write_page_options.php:228
|
330 |
+
#: inc-options/write_post_options.php:231
|
331 |
msgid ""
|
332 |
"It is possible to add your own IDs or classes from elements and tags. You "
|
333 |
"can find IDs and classes with the FireBug Add-on for Firefox. Assign a "
|
334 |
"value and the associate name per line."
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: inc-options/dashboard_options.php:165 inc-options/global_options.php:143
|
338 |
+
#: inc-options/links_options.php:143 inc-options/widget_options.php:155
|
339 |
+
#: inc-options/wp_nav_menu_options.php:170 inc-options/write_cp_options.php:270
|
340 |
+
#: inc-options/write_page_options.php:239
|
341 |
+
#: inc-options/write_post_options.php:242
|
342 |
msgid ""
|
343 |
"Possible nomination for ID or class. Separate multiple nominations through "
|
344 |
"a carriage return."
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: inc-options/dashboard_options.php:179 inc-options/global_options.php:154
|
348 |
+
#: inc-options/links_options.php:153 inc-options/widget_options.php:165
|
349 |
+
#: inc-options/wp_nav_menu_options.php:180 inc-options/write_cp_options.php:285
|
350 |
+
#: inc-options/write_page_options.php:249
|
351 |
+
#: inc-options/write_post_options.php:252
|
352 |
msgid "Possible IDs or classes. Separate multiple values through a carriage return."
|
353 |
msgstr ""
|
354 |
|
371 |
msgid "Global options"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: inc-options/global_options.php:62
|
375 |
msgid "Admin Bar"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: inc-options/global_options.php:63
|
379 |
msgid "Favorite Actions"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: inc-options/global_options.php:64
|
383 |
msgid "Screen-Meta"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: inc-options/global_options.php:65 inc-options/widget_options.php:61
|
387 |
+
#: inc-options/wp_nav_menu_options.php:64 inc-options/write_cp_options.php:121
|
388 |
+
#: inc-options/write_page_options.php:116
|
389 |
+
#: inc-options/write_post_options.php:121
|
390 |
msgid "Screen Options"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: inc-options/global_options.php:66
|
394 |
msgid "Contextual Help"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: inc-options/global_options.php:67
|
398 |
msgid "Admin Color Scheme"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: inc-options/global_options.php:68
|
402 |
msgid "Admin Notices"
|
403 |
msgstr ""
|
404 |
|
446 |
msgid "Links options"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: inc-options/links_options.php:63
|
450 |
msgid "Name"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: inc-options/links_options.php:64
|
454 |
msgid "Web Address"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: inc-options/links_options.php:65
|
458 |
msgid "Description"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: inc-options/links_options.php:66 inc-options/write_cp_options.php:125
|
462 |
+
#: inc-options/write_post_options.php:125
|
463 |
msgid "Categories"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: inc-options/links_options.php:67
|
467 |
msgid "Target"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: inc-options/links_options.php:68
|
471 |
msgid "Link Relationship (XFN)"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: inc-options/links_options.php:69
|
475 |
msgid "Advanced"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: inc-options/links_options.php:70 inc-options/write_cp_options.php:134
|
479 |
+
#: inc-options/write_page_options.php:134
|
480 |
+
#: inc-options/write_post_options.php:135
|
481 |
msgid "Publish Actions"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: inc-options/links_options.php:122
|
485 |
msgid "Your own Link options"
|
486 |
msgstr ""
|
487 |
|
493 |
msgid "Menu options - Menu, Submenu"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: inc-options/menu_options.php:99 inc-options/menu_options.php:188
|
497 |
msgid "After activate the check box it heavy attitudes will change."
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: inc-options/menu_options.php:162
|
501 |
msgid "Profile"
|
502 |
msgstr ""
|
503 |
|
634 |
msgid "Role"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: inc-options/widget_options.php:60 inc-options/wp_nav_menu_options.php:63
|
638 |
+
#: inc-options/write_cp_options.php:120 inc-options/write_page_options.php:115
|
639 |
+
#: inc-options/write_post_options.php:120
|
640 |
msgid "Help"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: inc-options/widget_options.php:62
|
644 |
msgid "Available Widgets"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: inc-options/widget_options.php:63
|
648 |
msgid "Inactive Sidebar (not used)"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: inc-options/widget_options.php:64
|
652 |
msgid "Inactive Widgets"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: inc-options/widget_options.php:134
|
656 |
msgid "Your own Widget options"
|
657 |
msgstr ""
|
658 |
|
659 |
+
#: inc-options/wp_nav_menu_options.php:65
|
660 |
+
#: inc-options/wp_nav_menu_options.php:71
|
661 |
msgid "Theme Locations"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: inc-options/wp_nav_menu_options.php:66
|
665 |
msgid "Custom Links"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: inc-options/wp_nav_menu_options.php:67
|
669 |
msgid "Add menu"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: inc-options/wp_nav_menu_options.php:149
|
673 |
msgid "Your own Nav Menu options"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: inc-options/write_cp_options.php:122 inc-options/write_page_options.php:118
|
677 |
+
#: inc-options/write_post_options.php:123
|
678 |
msgid "Permalink"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: inc-options/write_cp_options.php:123 inc-options/write_cp_options.php:166
|
682 |
+
#: inc-options/write_post_options.php:124
|
683 |
+
#: inc-options/write_post_options.php:165
|
684 |
msgid "Tags"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: inc-options/write_cp_options.php:124
|
688 |
msgid "Format"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: inc-options/write_cp_options.php:126 inc-options/write_post_options.php:126
|
692 |
msgid "Add New Category"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: inc-options/write_cp_options.php:127 inc-options/write_post_options.php:128
|
696 |
msgid "Password Protect This Post"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: inc-options/write_cp_options.php:128 inc-options/write_post_options.php:129
|
700 |
msgid "Related, Shortcuts"
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: inc-options/write_cp_options.php:129 inc-options/write_page_options.php:129
|
704 |
+
#: inc-options/write_post_options.php:130
|
705 |
msgid "Messages"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: inc-options/write_cp_options.php:130 inc-options/write_page_options.php:130
|
709 |
+
#: inc-options/write_post_options.php:131
|
710 |
msgid "h2: Advanced Options"
|
711 |
msgstr ""
|
712 |
|
713 |
+
#: inc-options/write_cp_options.php:131 inc-options/write_page_options.php:131
|
714 |
+
#: inc-options/write_post_options.php:132
|
715 |
msgid "Media Buttons (all)"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: inc-options/write_cp_options.php:132 inc-options/write_page_options.php:132
|
719 |
+
#: inc-options/write_post_options.php:133
|
720 |
msgid "Word count"
|
721 |
msgstr ""
|
722 |
|
723 |
+
#: inc-options/write_cp_options.php:133 inc-options/write_post_options.php:134
|
724 |
msgid "Post Slug"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: inc-options/write_cp_options.php:135 inc-options/write_page_options.php:135
|
728 |
+
#: inc-options/write_post_options.php:136
|
729 |
msgid "Discussion"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: inc-options/write_cp_options.php:136 inc-options/write_page_options.php:136
|
733 |
+
#: inc-options/write_post_options.php:137
|
734 |
msgid "HTML Editor Button"
|
735 |
msgstr ""
|
736 |
|
737 |
+
#: inc-options/write_cp_options.php:149 inc-options/write_post_options.php:151
|
738 |
msgid "Post Thumbnail"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: inc-options/write_cp_options.php:157 inc-options/write_page_options.php:155
|
742 |
+
#: inc-options/write_post_options.php:156
|
743 |
msgid "Quick Edit Link"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: inc-options/write_cp_options.php:158 inc-options/write_cp_options.php:162
|
747 |
+
#: inc-options/write_cp_options.php:165 inc-options/write_cp_options.php:168
|
748 |
+
#: inc-options/write_page_options.php:156
|
749 |
+
#: inc-options/write_page_options.php:161
|
750 |
+
#: inc-options/write_page_options.php:164
|
751 |
+
#: inc-options/write_post_options.php:157
|
752 |
+
#: inc-options/write_post_options.php:161
|
753 |
+
#: inc-options/write_post_options.php:164
|
754 |
+
#: inc-options/write_post_options.php:167
|
755 |
msgid "QE"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: inc-options/write_cp_options.php:158 inc-options/write_page_options.php:156
|
759 |
+
#: inc-options/write_post_options.php:157
|
760 |
msgid "Inline Edit Left"
|
761 |
msgstr ""
|
762 |
|
763 |
+
#: inc-options/write_cp_options.php:159 inc-options/write_page_options.php:157
|
764 |
+
#: inc-options/write_post_options.php:158
|
765 |
msgid "All Labels"
|
766 |
msgstr ""
|
767 |
|
768 |
+
#: inc-options/write_cp_options.php:160 inc-options/write_page_options.php:159
|
769 |
+
#: inc-options/write_post_options.php:159
|
770 |
msgid "Author"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: inc-options/write_cp_options.php:161 inc-options/write_page_options.php:160
|
774 |
+
#: inc-options/write_post_options.php:160
|
775 |
msgid "Password and Private"
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: inc-options/write_cp_options.php:162 inc-options/write_post_options.php:161
|
779 |
msgid "Inline Edit Center"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: inc-options/write_cp_options.php:163 inc-options/write_post_options.php:162
|
783 |
msgid "Categories Title"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: inc-options/write_cp_options.php:164 inc-options/write_post_options.php:163
|
787 |
msgid "Categories List"
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: inc-options/write_cp_options.php:165 inc-options/write_page_options.php:161
|
791 |
+
#: inc-options/write_post_options.php:164
|
792 |
msgid "Inline Edit Right"
|
793 |
msgstr ""
|
794 |
|
795 |
+
#: inc-options/write_cp_options.php:167 inc-options/write_post_options.php:166
|
796 |
msgid "Status, Sticky"
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: inc-options/write_cp_options.php:168 inc-options/write_page_options.php:164
|
800 |
+
#: inc-options/write_post_options.php:167
|
801 |
msgid "Cancel/Save Button"
|
802 |
msgstr ""
|
803 |
|
804 |
+
#: inc-options/write_cp_options.php:241
|
805 |
msgid "Your own %s options"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: inc-options/write_page_options.php:117
|
809 |
+
#: inc-options/write_post_options.php:122
|
810 |
msgid "Title"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: inc-options/write_page_options.php:119
|
814 |
msgid "Custom Fields"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: inc-options/write_page_options.php:120
|
818 |
msgid "Comments & Pings"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: inc-options/write_page_options.php:121
|
822 |
+
#: inc-options/write_page_options.php:158
|
823 |
+
#: inc-options/write_post_options.php:127
|
824 |
msgid "Date"
|
825 |
msgstr ""
|
826 |
|
827 |
+
#: inc-options/write_page_options.php:122
|
828 |
msgid "Password Protect This Page"
|
829 |
msgstr ""
|
830 |
|
831 |
+
#: inc-options/write_page_options.php:123
|
832 |
msgid "Attributes"
|
833 |
msgstr ""
|
834 |
|
835 |
+
#: inc-options/write_page_options.php:124
|
836 |
msgid "Page Template"
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: inc-options/write_page_options.php:125
|
840 |
msgid "Page Order"
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: inc-options/write_page_options.php:126
|
844 |
msgid "Page Author"
|
845 |
msgstr ""
|
846 |
|
847 |
+
#: inc-options/write_page_options.php:127
|
848 |
msgid "Page Revisions"
|
849 |
msgstr ""
|
850 |
|
851 |
+
#: inc-options/write_page_options.php:128
|
852 |
msgid "Related"
|
853 |
msgstr ""
|
854 |
|
855 |
+
#: inc-options/write_page_options.php:133
|
856 |
msgid "Page Slug"
|
857 |
msgstr ""
|
858 |
|
859 |
+
#: inc-options/write_page_options.php:150
|
860 |
msgid "Page Image"
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: inc-options/write_page_options.php:162
|
864 |
msgid "Parent, Order, Template"
|
865 |
msgstr ""
|
866 |
|
867 |
+
#: inc-options/write_page_options.php:163
|
868 |
msgid "Status"
|
869 |
msgstr ""
|
870 |
|
871 |
+
#: inc-options/write_page_options.php:218
|
872 |
msgid "Your own page options"
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: inc-options/write_post_options.php:221
|
876 |
msgid "Your own post options"
|
877 |
msgstr ""
|
878 |
|
912 |
msgid "Load user data to themes was successful."
|
913 |
msgstr ""
|
914 |
|
915 |
+
#: inc-setup/remove-admin-bar.php:275 inc-setup/remove-admin-bar.php:277
|
916 |
msgid "Network Admin"
|
917 |
msgstr ""
|
918 |
|
919 |
+
#: inc-setup/remove-admin-bar.php:279 inc-setup/remove-admin-bar.php:281
|
920 |
msgid "Site Admin"
|
921 |
msgstr ""
|
922 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/FrankBueltge
|
|
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: 4.0
|
6 |
Tested up to: 4.5-alpha
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Adminimize that lets you hide 'unnecessary' items from the WordPress backend
|
10 |
|
@@ -13,27 +13,17 @@ If you manage a multi-author WordPress blog or WordPress sites for clients, then
|
|
13 |
|
14 |
Adminimize makes it easy to remove items from view based on a user’s role.
|
15 |
|
16 |
-
=
|
17 |
-
|
18 |
-
|
19 |
-
Currently I search for developer there will help on dev and support the plugin. The plugin have a [github repository](https://github.com/bueltge/Adminimize) to easy add a issue or a create a fork, pull request. Also to add issues to understand the problems.
|
20 |
-
|
21 |
-
Especially the functionality for WP Multisite is currently more a hack as a solution. But is very complex, not easy to create a solution for this.
|
22 |
-
|
23 |
-
For development see this repository: https://github.com/bueltge/Adminimize
|
24 |
-
The `master` branch is the current version and the new will leave in the `refactor` branch.
|
25 |
-
|
26 |
-
= Support Custom Options on all different post types =
|
27 |
-
It is possible to add own options to hide areas in the back end of WordPress. It is easy and you must only forgive ID or class, a selector, of the markup, that you will hide.
|
28 |
|
29 |
= Support Custom Post Type =
|
30 |
The plugin support all functions also for custom post types, automatically in the settings page.
|
31 |
|
32 |
-
=
|
33 |
-
|
34 |
|
35 |
-
=
|
36 |
-
|
37 |
|
38 |
== Installation ==
|
39 |
= Requirements =
|
@@ -51,6 +41,17 @@ Use the installer via back-end of your install or ...
|
|
51 |
1. Settings area in WP 4.5-alpha
|
52 |
|
53 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
= 1.9.2 (2016-01-30) =
|
55 |
* Change get role name, return now a array with slug and name to fix "Select All" function for custom roles.
|
56 |
* Change Menu Items to Key value, not the id. Makes possible to hide also menu items, there have a stupid menu entry.
|
@@ -392,9 +393,9 @@ Use the installer via back-end of your install or ...
|
|
392 |
|
393 |
== Other Notes ==
|
394 |
= Help with "Your own options" =
|
395 |
-
|
396 |
|
397 |
-
=
|
398 |
Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
|
399 |
|
400 |
= Translations =
|
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: 4.0
|
6 |
Tested up to: 4.5-alpha
|
7 |
+
Stable tag: 1.10.0
|
8 |
|
9 |
Adminimize that lets you hide 'unnecessary' items from the WordPress backend
|
10 |
|
13 |
|
14 |
Adminimize makes it easy to remove items from view based on a user’s role.
|
15 |
|
16 |
+
= What does this plugin do? =
|
17 |
+
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 sub-menu. 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
= Support Custom Post Type =
|
20 |
The plugin support all functions also for custom post types, automatically in the settings page.
|
21 |
|
22 |
+
= Support Custom Options on all different post types =
|
23 |
+
It is possible to add own options to hide areas in the back-end of WordPress. It is easy and you must only forgive a ID or class, a selector, of the markup, that you will hide.
|
24 |
|
25 |
+
= Compatibility with plugins for MetaBoxes in Write-area =
|
26 |
+
You can add your own options, you must only check for css selectors.
|
27 |
|
28 |
== Installation ==
|
29 |
= Requirements =
|
41 |
1. Settings area in WP 4.5-alpha
|
42 |
|
43 |
== Changelog ==
|
44 |
+
= 1.10.0 (2016-02-21) =
|
45 |
+
* Rewrite the Admin Bar settings, simplify the source and new hook to get and render the Admin Bar.
|
46 |
+
* Change settings screen for custom post type.
|
47 |
+
* Fix "select all" on Admin Bar settings.
|
48 |
+
* Fix exclude settings page for pages, there is the current screen not existent.
|
49 |
+
* Improve the exclude settings page function for hooks, there fired before `get_current_screen`.
|
50 |
+
* Remove more legacy code before WP 3.3.
|
51 |
+
* Change removal of Menu and Submenu items to WP core functions, possible to non support older WP Versions.
|
52 |
+
* Supports multiple roles on "Menu Options" and "Global Options".
|
53 |
+
* Add possibility to hide Admin Notices globally, new setting point in "Global Options".
|
54 |
+
|
55 |
= 1.9.2 (2016-01-30) =
|
56 |
* Change get role name, return now a array with slug and name to fix "Select All" function for custom roles.
|
57 |
* Change Menu Items to Key value, not the id. Makes possible to hide also menu items, there have a stupid menu entry.
|
393 |
|
394 |
== Other Notes ==
|
395 |
= Help with "Your own options" =
|
396 |
+
See the [entry on the WP community forum](http://wordpress.org/support/topic/328449 "Plugin: Adminimize Help with Your own options (3 posts)") for help with this great possibility.
|
397 |
|
398 |
+
= License =
|
399 |
Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a [small donation](http://bueltge.de/wunschliste/ "Wishliste and Donate") for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)
|
400 |
|
401 |
= Translations =
|