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 +10 -16 1.11.13 → 1.9.1 View file →
@@ -10,23 +10,15 @@
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="nav_menu_options"><?php esc_attr_e( 'WP Nav Menu', 'adminimize' ); ?></h3>
14 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
15 + <h3 class="hndle" id="nav_menu_options"><?php esc_attr_e( 'WP Nav Menu', 'adminimize' ); ?></h3>
15 16
16 17 <div class="inside">
17 18 <br class="clear" />
18 19
19 20 <table summary="config_nav_menu" class="widefat">
20 - <colgroup>
21 - <?php
22 - $col = 0;
23 - foreach ( $user_roles_names as $role_name ) {
24 - echo '<col class="col' . $col . '">' . "\n";
25 - $col ++;
26 - }
27 - ?>
28 - </colgroup>
29 21 <thead>
30 22 <tr>
31 23 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
32 24 <?php
@@ -37,11 +29,13 @@
37 29 </tr>
38 30 <tr>
39 31 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
40 32 <?php
41 - 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 );
42 36 echo '<td class="num">';
43 - 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
44 38 . '" type="checkbox" name="" value="" />';
45 39 echo '</td>' . "\n";
46 40 } ?>
47 41 </tr>
@@ -133,9 +127,9 @@
133 127 echo '<td>' . $nav_menu_options_names[ $index ] . ' <span>(' . $nav_menu_option . ')</span> </td>' . "\n";
134 128 foreach ( $user_roles as $role ) {
135 129 echo '<td class="num">';
136 130 echo '<input id="check_post' . $role . $x . '" class="wp_nav_menu_options_'
137 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
131 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
138 132 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_nav_menu_option_'
139 133 . $role . '_items[]" value="' . $nav_menu_option . '" />';
140 134 echo '</td>' . "\n";
141 135 }
@@ -155,11 +149,11 @@
155 149 <thead>
156 150 <tr>
157 151 <th><?php esc_attr_e( 'Your own Nav Menu options', 'adminimize' );
158 152 echo '<br />';
159 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
153 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
160 154 <th><?php echo '<br />';
161 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
155 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
162 156 </tr>
163 157 </thead>
164 158
165 159 <tbody>
@@ -200,9 +194,9 @@
200 194 ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
201 195 </p>
202 196
203 197 <p>
204 - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
198 + <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
205 199 'scroll to top', 'adminimize'
206 200 ); ?></a><br class="clear" /></p>
207 201
208 202 </div>