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/widget_options.php +8 -15 1.11.3 → 1.9.1 View file →
@@ -11,9 +11,9 @@
11 11 }
12 12 ?>
13 13 <div id="poststuff" class="ui-sortable meta-box-sortables">
14 14 <div class="postbox">
15 - <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div>
15 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
16 16 <h3 class="hndle" id="widget_options"><?php esc_attr_e( 'Widgets', 'adminimize' ); ?></h3>
17 17
18 18 <div class="inside">
19 19 <br class="clear" />
@@ -18,17 +18,8 @@
18 18 <div class="inside">
19 19 <br class="clear" />
20 20
21 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 22 <thead>
32 23 <tr>
33 24 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
34 25 <?php
@@ -39,11 +30,13 @@
39 30 </tr>
40 31 <tr>
41 32 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
42 33 <?php
43 - foreach ( $user_roles as $role_slug ) {
34 + foreach ( $user_roles_names as $role_name ) {
35 + $role_name = strtolower( $role_name );
36 + $role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
44 37 echo '<td class="num">';
45 - echo '<input id="select_all" class="widget_options_' . $role_slug
38 + echo '<input id="select_all" class="widget_options_' . $role_name
46 39 . '" type="checkbox" name="" value="" />';
47 40 echo '</td>' . "\n";
48 41 } ?>
49 42 </tr>
@@ -119,9 +112,9 @@
119 112 echo '<td>' . $widget_options_names[ $index ] . ' <span>(' . $widget_option . ')</span> </td>' . "\n";
120 113 foreach ( $user_roles as $role ) {
121 114 echo '<td class="num">';
122 115 echo '<input id="check_post' . $role . $x . '" class="widget_options_'
123 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
116 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
124 117 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_widget_option_'
125 118 . $role . '_items[]" value="' . $widget_option . '" />';
126 119 echo '</td>' . "\n";
127 120 }
@@ -141,11 +134,11 @@
141 134 <thead>
142 135 <tr>
143 136 <th><?php esc_attr_e( 'Your own Widget options', 'adminimize' );
144 137 echo '<br />';
145 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
138 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
146 139 <th><?php echo '<br />';
147 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
140 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
148 141 </tr>
149 142 </thead>
150 143
151 144 <tbody>