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/links_options.php +11 -17 1.11.11 → 1.9.1 View file →
@@ -11,23 +11,15 @@
11 11 ?>
12 12
13 13 <div id="poststuff" class="ui-sortable meta-box-sortables">
14 14 <div class="postbox">
15 - <h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>" id="links_options"><?php esc_attr_e( 'Links options', 'adminimize' ); ?></h3>
15 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
16 + <h3 class="hndle" id="links_options"><?php esc_attr_e( 'Links options', 'adminimize' ); ?></h3>
16 17
17 18 <div class="inside">
18 19 <br class="clear" />
19 20
20 21 <table summary="config_edit_links" 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 22 <thead>
31 23 <tr>
32 24 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th>
33 25 <?php
@@ -38,11 +30,13 @@
38 30 </tr>
39 31 <tr>
40 32 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
41 33 <?php
42 - 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 );
43 37 echo '<td class="num">';
44 - echo '<input id="select_all" class="links_options_' . $role_slug
38 + echo '<input id="select_all" class="links_options_' . $role_name
45 39 . '" type="checkbox" name="" value="" />';
46 40 echo '</td>' . "\n";
47 41 } ?>
48 42 </tr>
@@ -106,9 +100,9 @@
106 100 echo '<td>' . $link_options_names[ $index ] . ' <span>(' . $link_option . ')</span> </td>' . "\n";
107 101 foreach ( $user_roles as $role ) {
108 102 echo '<td class="num">';
109 103 echo '<input id="check_post' . $role . $x . '" class="links_options_'
110 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
104 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
111 105 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_link_option_'
112 106 . $role . '_items[]" value="' . $link_option . '" />';
113 107 echo '</td>' . "\n";
114 108 }
@@ -128,11 +122,11 @@
128 122 <thead>
129 123 <tr>
130 124 <th><?php esc_attr_e( 'Your own Link options', 'adminimize' );
131 125 echo '<br />';
132 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
126 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
133 127 <th><?php echo '<br />';
134 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
128 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
135 129 </tr>
136 130 </thead>
137 131
138 132 <tbody>
@@ -173,11 +167,11 @@
173 167 ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
174 168 </p>
175 169
176 170 <p>
177 - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e(
171 + <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e(
178 172 'scroll to top', 'adminimize'
179 173 ); ?></a><br class="clear" /></p>
180 174
181 175 </div>
182 176 </div>
183 -</div>
177 +</div>