PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
← All changes | inc-options/theme_options.php +16 -24 1.11.11 → 1.9.1 View file →
@@ -10,9 +10,10 @@
10 10 }
11 11 ?>
12 12 <div id="poststuff" class="ui-sortable meta-box-sortables">
13 13 <div class="postbox">
14 - <h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="set_theme" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
14 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
15 + <h3 class="hndle" id="set_theme" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><?php
15 16 esc_attr_e( 'Set Theme', 'adminimize' ) ?></h3>
16 17
17 18 <div class="inside">
18 19 <br class="clear" />
@@ -22,9 +23,9 @@
22 23 $_GET[ 'page' ]
23 24 ); ?>">
24 25 <?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
25 26 <p><?php esc_attr_e(
26 - 'For better performance on sites with many users, you should load userlist data before making any changes in the theme options for users.',
27 + 'For better peformance with many users on your blog; load only userlist, when you will change the theme options for users.',
27 28 'adminimize'
28 29 ); ?></p>
29 30
30 31 <p id="submitbutton">
@@ -43,20 +44,19 @@
43 44 <table class="widefat usertheme">
44 45 <thead>
45 46 <tr class="thead">
46 47 <th class="num">&nbsp;</th>
47 - <th class="num"><?php esc_attr_e( 'User-ID', 'adminimize' ) ?></th>
48 - <th><?php esc_attr_e( 'Username', 'adminimize' ) ?></th>
49 - <th><?php esc_attr_e( 'Display name publicly as', 'adminimize' ) ?></th>
50 - <th><?php esc_attr_e( 'Admin Color Scheme', 'adminimize' ) ?></th>
51 - <th><?php esc_attr_e( 'User Level', 'adminimize' ) ?></th>
52 - <th><?php esc_attr_e( 'Role', 'adminimize' ) ?></th>
48 + <th class="num"><?php esc_attr_e( 'User-ID' ) ?></th>
49 + <th><?php esc_attr_e( 'Username' ) ?></th>
50 + <th><?php esc_attr_e( 'Display name publicly as' ) ?></th>
51 + <th><?php esc_attr_e( 'Admin-Color Scheme' ) ?></th>
52 + <th><?php esc_attr_e( 'User Level' ) ?></th>
53 + <th><?php esc_attr_e( 'Role' ) ?></th>
53 54 </tr>
54 55 </thead>
55 56 <tbody id="users" class="list:user user-list">
56 57 <?php
57 - /** @var \WPDB $wpdb */
58 - $wp_user_search = (array) $wpdb->get_results(
58 + $wp_user_search = $wpdb->get_results(
59 59 "SELECT ID, user_login, display_name FROM $wpdb->users ORDER BY ID"
60 60 );
61 61
62 62 foreach ( $wp_user_search as $userid ) {
@@ -67,20 +67,14 @@
67 67 $user_level = (int) get_user_option( $table_prefix . 'user_level', $user_id );
68 68 $user_object = new WP_User( $user_id );
69 69 $roles = $user_object->roles;
70 70 $role = array_shift( $roles );
71 - /** @var \WP_Roles $wp_roles */
72 - $role_name = '';
73 - if ( isset( $wp_roles->role_names[ $role ] ) ) {
74 - $role_name = $wp_roles->role_names[ $role ];
75 - }
76 -
77 71 if ( function_exists( 'translate_user_role' ) ) {
78 - $role_name = translate_user_role( $role_name );
72 + $role_name = translate_user_role( $wp_roles->role_names[ $role ] );
79 73 } elseif ( function_exists( 'before_last_bar' ) ) {
80 - $role_name = before_last_bar( $role_name );
74 + $role_name = before_last_bar( $wp_roles->role_names[ $role ] );
81 75 } else {
82 - $role_name = strrpos( $role_name, '|' );
76 + $role_name = strrpos( $wp_roles->role_names[ $role ], '|' );
83 77 }
84 78
85 79 $return = '';
86 80 $return .= '<tr>' . "\n";
@@ -101,12 +95,10 @@
101 95 <td class="num">&nbsp;</td>
102 96 <td>&nbsp;</td>
103 97 <td>&nbsp;</td>
104 98 <td>
105 - <label for="_mw_adminimize_set_theme"></label>
106 - <select id="_mw_adminimize_set_theme" name="_mw_adminimize_set_theme">
107 - <?php /** @var array $_wp_admin_css_colors */
108 - foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
99 + <select name="_mw_adminimize_set_theme">
100 + <?php foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
109 101 <option value="<?php echo $color; ?>"><?php echo $color_info->name . ' (' . $color . ')' ?></option>
110 102 <?php endforeach; ?>
111 103 </select>
112 104 </td>
@@ -125,9 +117,9 @@
125 117 </form>
126 118 <?php } ?>
127 119
128 120 <p>
129 - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
121 + <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
130 122 'scroll to top', 'adminimize'
131 123 ); ?></a><br class="clear" /></p>
132 124 </div>
133 125 </div>