| @@ -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> |
| @@ -186,9 +179,9 @@ | ||
| 186 | 179 | ); ?> »" /><input type="hidden" name="page_options" value="'dofollow_timeout'" /> |
| 187 | 180 | </p> |
| 188 | 181 | |
| 189 | 182 | <p> |
| 190 | - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;"><?php esc_attr_e( | |
| 183 | + <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php esc_attr_e( | |
| 191 | 184 | 'scroll to top', 'adminimize' |
| 192 | 185 | ); ?></a><br class="clear" /></p> |
| 193 | 186 | |
| 194 | 187 | </div> |