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