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/wp_nav_menu_options.php +8 -15 1.11.2 → 1.9.1 View file →
@@ -10,9 +10,9 @@
10 10 }
11 11 ?>
12 12 <div id="poststuff" class="ui-sortable meta-box-sortables">
13 13 <div class="postbox">
14 - <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div>
14 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
15 15 <h3 class="hndle" id="nav_menu_options"><?php esc_attr_e( 'WP Nav Menu', 'adminimize' ); ?></h3>
16 16
17 17 <div class="inside">
18 18 <br class="clear" />
@@ -17,17 +17,8 @@
17 17 <div class="inside">
18 18 <br class="clear" />
19 19
20 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 21 <thead>
31 22 <tr>
32 23 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
33 24 <?php
@@ -38,11 +29,13 @@
38 29 </tr>
39 30 <tr>
40 31 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
41 32 <?php
42 - foreach ( $user_roles as $role_slug ) {
33 + foreach ( $user_roles_names as $role_name ) {
34 + $role_name = strtolower( $role_name );
35 + $role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
43 36 echo '<td class="num">';
44 - echo '<input id="select_all" class="wp_nav_menu_options_' . $role_slug
37 + echo '<input id="select_all" class="wp_nav_menu_options_' . $role_name
45 38 . '" type="checkbox" name="" value="" />';
46 39 echo '</td>' . "\n";
47 40 } ?>
48 41 </tr>
@@ -134,9 +127,9 @@
134 127 echo '<td>' . $nav_menu_options_names[ $index ] . ' <span>(' . $nav_menu_option . ')</span> </td>' . "\n";
135 128 foreach ( $user_roles as $role ) {
136 129 echo '<td class="num">';
137 130 echo '<input id="check_post' . $role . $x . '" class="wp_nav_menu_options_'
138 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
131 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
139 132 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_nav_menu_option_'
140 133 . $role . '_items[]" value="' . $nav_menu_option . '" />';
141 134 echo '</td>' . "\n";
142 135 }
@@ -156,11 +149,11 @@
156 149 <thead>
157 150 <tr>
158 151 <th><?php esc_attr_e( 'Your own Nav Menu options', 'adminimize' );
159 152 echo '<br />';
160 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
153 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
161 154 <th><?php echo '<br />';
162 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
155 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
163 156 </tr>
164 157 </thead>
165 158
166 159 <tbody>