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/dashboard_options.php +10 -17 1.11.5 → 1.9.1 View file →
@@ -12,9 +12,9 @@
12 12 ?>
13 13
14 14 <div id="poststuff" class="ui-sortable meta-box-sortables">
15 15 <div class="postbox">
16 - <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div>
16 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
17 17 <h3 class="hndle" id="dashboard_options"><?php esc_attr_e( 'Dashboard options', 'adminimize' ); ?></h3>
18 18
19 19 <div class="inside">
20 20 <br class="clear" />
@@ -22,9 +22,9 @@
22 22 $disabled_dashboard_option_ = array();
23 23 // get widgets
24 24 $widgets = _mw_adminimize_get_option_value( 'mw_adminimize_dashboard_widgets' );
25 25 if ( NULL === $widgets ) {
26 - echo '<p>';
26 + echo '<p class="form-invalid">';
27 27 esc_attr_e(
28 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 29 'adminimize'
30 30 );
@@ -32,17 +32,8 @@
32 32 } else {
33 33 ?>
34 34
35 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 36 <thead>
46 37 <tr>
47 38 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
48 39 <?php
@@ -53,11 +44,13 @@
53 44 </tr>
54 45 <tr>
55 46 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
56 47 <?php
57 - foreach ( $user_roles as $role_slug ) {
48 + foreach ( $user_roles_names as $role_name ) {
49 + $role_name = strtolower( $role_name );
50 + $role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
58 51 echo '<td class="num">';
59 - echo '<input id="select_all" class="dashboard_options_' . $role_slug
52 + echo '<input id="select_all" class="dashboard_options_' . $role_name
60 53 . '" type="checkbox" name="" value="" />';
61 54 echo '</td>' . "\n";
62 55 } ?>
63 56 </tr>
@@ -125,9 +118,9 @@
125 118 echo '<td>' . $dashboard_options_names[ $index ] . ' <span>(' . $dashboard_option . ')</span> </td>' . "\n";
126 119 foreach ( $user_roles as $role ) {
127 120 echo '<td class="num">';
128 121 echo '<input id="check_post' . $role . $x . '" class="dashboard_options_'
129 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
122 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
130 123 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_dashboard_option_'
131 124 . $role . '_items[]" value="' . $dashboard_option . '" />';
132 125 echo '</td>';
133 126 }
@@ -148,11 +141,11 @@
148 141 <thead>
149 142 <tr>
150 143 <th><?php esc_attr_e( 'Your own options', 'adminimize' );
151 144 echo '<br />';
152 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
145 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
153 146 <th><?php echo '<br />';
154 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
147 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
155 148 </tr>
156 149 </thead>
157 150
158 151 <tbody>
@@ -204,9 +197,9 @@
204 197
205 198 <?php } // end if else $widgets ?>
206 199
207 200 <p>
208 - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
201 + <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
209 202 'scroll to top', 'adminimize'
210 203 ); ?></a><br class="clear" /></p>
211 204
212 205 </div>