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/write_post_options.php +24 -30 1.11.4 → 1.9.1 View file →
@@ -11,10 +11,10 @@
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>
16 - <h3 class="hndle" id="config_edit_post" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><?php
15 + <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
16 + <h3 class="hndle" id="config_edit_post" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><?php
17 17 esc_attr_e( 'Write options - Post', 'adminimize' ); ?></h3>
18 18
19 19 <div class="inside">
20 20 <br class="clear" />
@@ -19,22 +19,13 @@
19 19 <div class="inside">
20 20 <br class="clear" />
21 21
22 22 <table summary="config_edit_post" class="widefat">
23 - <colgroup>
24 - <?php
25 - $col = 0;
26 - foreach ( (array) $user_roles_names as $role_name ) {
27 - echo '<col class="col' . $col . '">' . "\n";
28 - $col ++;
29 - }
30 - ?>
31 - </colgroup>
32 23 <thead>
33 24 <tr>
34 25 <th><?php esc_attr_e( 'Write options - Post', 'adminimize' ); ?></th>
35 26 <?php
36 - foreach ( (array) $user_roles_names as $role_name ) { ?>
27 + foreach ( $user_roles_names as $role_name ) { ?>
37 28 <th><?php esc_attr_e( 'Deactivate for', 'adminimize' );
38 29 echo '<br/>' . $role_name; ?></th>
39 30 <?php } ?>
40 31 </tr>
@@ -40,11 +31,15 @@
40 31 </tr>
41 32 <tr>
42 33 <td><?php esc_attr_e( 'Select all', 'adminimize' ); ?></td>
43 34 <?php
44 - foreach ( (array) $user_roles as $role_slug ) {
45 - echo '<td class="num"><input id="select_all" class="write_post_options_'
46 - . esc_attr( $role_slug ) . '" type="checkbox" name="" value="" /></td>' . "\n";
35 + foreach ( $user_roles_names as $role_name ) {
36 + $role_name = strtolower( $role_name );
37 + $role_name = preg_replace( '/[^a-z0-9]+/', '', $role_name );
38 + echo '<td class="num">';
39 + echo '<input id="select_all" class="write_post_options_' . $role_name
40 + . '" type="checkbox" name="" value="" />';
41 + echo '</td>' . "\n";
47 42 } ?>
48 43 </tr>
49 44 </thead>
50 45
@@ -52,9 +47,8 @@
52 47 <?php
53 48 $metaboxes = array(
54 49 '#contextual-help-link-wrap',
55 50 '#screen-options-link-wrap',
56 - '.page-title-action',
57 51 '#title, #titlediv, th.column-title, td.title',
58 52 '#pageslugdiv',
59 53 '#tags, #tagsdiv,#tagsdivsb,#tagsdiv-post_tag, th.column-tags, td.tags',
60 54 '#categories, #categorydiv, #categorydivsb, th.column-categories, td.categories',
@@ -68,9 +62,9 @@
68 62 '#wp-word-count',
69 63 '#slugdiv,#edit-slug-box',
70 64 '#misc-publishing-actions',
71 65 '#commentstatusdiv',
72 - '#editor-toolbar #edButtonHTML, #quicktags, #content-html, .wp-switch-editor.switch-html',
66 + '#editor-toolbar #edButtonHTML, #quicktags, #content-html, .wp-switch-editor.switch-html'
73 67 );
74 68
75 69 $post_type = 'post';
76 70 foreach ( $GLOBALS[ '_wp_post_type_features' ][ $post_type ] as $post_type_support => $key ) {
@@ -77,8 +71,9 @@
77 71 if ( post_type_supports( $post_type, $post_type_support )
78 72 && 'excerpt' === $post_type_support
79 73 ) {
80 74 $post_type_support = $post_type . 'excerpt';
75 +
81 76 }
82 77 if ( 'page-attributes' === $post_type_support ) {
83 78 $post_type_support = 'pageparentdiv';
84 79 }
@@ -125,9 +120,8 @@
125 120
126 121 $metaboxes_names = array(
127 122 esc_attr__( 'Help' ),
128 123 esc_attr__( 'Screen Options' ),
129 - esc_attr__( 'Add New' ),
130 124 esc_attr__( 'Title', 'adminimize' ),
131 125 esc_attr__( 'Permalink', 'adminimize' ),
132 126 esc_attr__( 'Tags', 'adminimize' ),
133 127 esc_attr__( 'Categories', 'adminimize' ),
@@ -162,17 +156,17 @@
162 156 // quick edit names
163 157 $quickedit_names = array(
164 158 '<strong>' . esc_attr__( 'Quick Edit Link', 'adminimize' ) . '</strong>',
165 159 esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Left', 'adminimize' ),
166 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'All Labels', 'adminimize' ),
167 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Author' ),
168 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Password and Private', 'adminimize' ),
160 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'All Labels', 'adminimize' ),
161 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Author' ),
162 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Password and Private', 'adminimize' ),
169 163 esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Center', 'adminimize' ),
170 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Categories Title', 'adminimize' ),
171 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Categories List', 'adminimize' ),
164 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Categories Title', 'adminimize' ),
165 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Categories List', 'adminimize' ),
172 166 esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Inline Edit Right', 'adminimize' ),
173 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Tags' ),
174 - '&emsp;' . esc_attr__( 'QE', 'adminimize' ) . ' &rArr;' . ' ' . esc_attr__( 'Status, Sticky', 'adminimize' ),
167 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Tags' ),
168 + '&emsp;QE &rArr;' . ' ' . esc_attr__( 'Status, Sticky', 'adminimize' ),
175 169 esc_attr__( 'QE', 'adminimize' ) . ' ' . esc_attr__( 'Cancel/Save Button', 'adminimize' )
176 170 );
177 171 $metaboxes_names = array_merge( $metaboxes_names, $quickedit_names );
178 172
@@ -197,9 +191,9 @@
197 191 $checked_user_role_ = array();
198 192 foreach ( $user_roles as $role ) {
199 193 $checked_user_role_[ $role ] = ( isset( $disabled_metaboxes_post_[ $role ] )
200 194 && in_array(
201 - $metabox, $disabled_metaboxes_post_[ $role ], FALSE
195 + $metabox, $disabled_metaboxes_post_[ $role ]
202 196 ) ) ? ' checked="checked"' : '';
203 197 }
204 198 echo '<tr>' . "\n";
205 199 echo '<td>' . $metaboxes_names[ $index ] . ' <span>(' . $metabox . ')</span> </td>' . "\n";
@@ -205,9 +199,9 @@
205 199 echo '<td>' . $metaboxes_names[ $index ] . ' <span>(' . $metabox . ')</span> </td>' . "\n";
206 200 foreach ( $user_roles as $role ) {
207 201 echo '<td class="num">';
208 202 echo '<input id="check_post' . $role . $x . '" class="write_post_options_'
209 - . preg_replace( '/[^a-z0-9_-]+/', '', $role ) . '" type="checkbox"'
203 + . preg_replace( '/[^a-z0-9]+/', '', $role ) . '" type="checkbox"'
210 204 . $checked_user_role_[ $role ] . ' name="mw_adminimize_disabled_metaboxes_post_'
211 205 . $role . '_items[]" value="' . $metabox . '" />';
212 206 echo '</td>' . "\n";
213 207 }
@@ -225,13 +219,13 @@
225 219 <br style="margin-top: 10px;" />
226 220 <table summary="config_own_post" class="widefat">
227 221 <thead>
228 222 <tr>
229 - <th><?php esc_attr_e( 'Your own options', 'adminimize' );
223 + <th><?php esc_attr_e( 'Your own post options', 'adminimize' );
230 224 echo '<br />';
231 - esc_attr_e( 'Option name', 'adminimize' ); ?></th>
225 + esc_attr_e( 'ID or class', 'adminimize' ); ?></th>
232 226 <th><?php echo '<br />';
233 - esc_attr_e( 'Selector, ID or class', 'adminimize' ); ?></th>
227 + esc_attr_e( 'Option', 'adminimize' ); ?></th>
234 228 </tr>
235 229 </thead>
236 230
237 231 <tbody>