170 | | <ul id="post-filters" class="export-filters"> |
171 | | <li> |
172 | | <label><span class="label-responsive"><?php _e( 'Categories:' ); ?></span> |
173 | | <?php wp_dropdown_categories( array( 'show_option_all' => __('All') ) ); ?> |
174 | | </label> |
175 | | </li> |
176 | | <li> |
177 | | <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span> |
178 | | <?php |
| 170 | <div id="post-filters" class="export-filters"> |
| 171 | <table class="form-table"> |
| 172 | <tr> |
| 173 | <th scope="row"><label><?php _e( 'Categories' ); ?></label></th> |
| 174 | <td><?php wp_dropdown_categories( array( 'show_option_all' => __('All') ) ); ?></td> |
| 175 | </tr> |
| 176 | <tr> |
| 177 | <th scope="row"><label><?php _e( 'Authors' ); ?></label></th> |
| 178 | <td><?php |
217 | | <ul id="page-filters" class="export-filters"> |
218 | | <li> |
219 | | <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span> |
220 | | <?php |
221 | | $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" ); |
222 | | wp_dropdown_users( array( |
223 | | 'include' => $authors, |
224 | | 'name' => 'page_author', |
225 | | 'multi' => true, |
226 | | 'show_option_all' => __( 'All' ), |
227 | | 'show' => 'display_name_with_login', |
228 | | ) ); ?> |
229 | | </label> |
230 | | </li> |
231 | | <li> |
232 | | <fieldset> |
233 | | <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend> |
234 | | <label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label> |
235 | | <select name="page_start_date" id="page-start-date"> |
236 | | <option value="0"><?php _e( '— Select —' ); ?></option> |
237 | | <?php export_date_options( 'page' ); ?> |
238 | | </select> |
239 | | <label for="page-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label> |
240 | | <select name="page_end_date" id="page-end-date"> |
241 | | <option value="0"><?php _e( '— Select —' ); ?></option> |
242 | | <?php export_date_options( 'page' ); ?> |
243 | | </select> |
244 | | </fieldset> |
245 | | </li> |
246 | | <li> |
247 | | <label for="page-status" class="label-responsive"><?php _e( 'Status:' ); ?></label> |
248 | | <select name="page_status" id="page-status"> |
249 | | <option value="0"><?php _e( 'All' ); ?></option> |
250 | | <?php foreach ( $post_stati as $status ) : ?> |
251 | | <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> |
252 | | <?php endforeach; ?> |
253 | | </select> |
254 | | </li> |
255 | | </ul> |
| 221 | <div id="page-filters" class="export-filters"> |
| 222 | <table class="form-table"> |
| 223 | <tr> |
| 224 | <th scope="row"><?php _e( 'Authors' ); ?></th> |
| 225 | <td> |
| 226 | <?php |
| 227 | $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" ); |
| 228 | wp_dropdown_users( array( |
| 229 | 'include' => $authors, |
| 230 | 'name' => 'page_author', |
| 231 | 'multi' => true, |
| 232 | 'show_option_all' => __( 'All' ), |
| 233 | 'show' => 'display_name_with_login', |
| 234 | ) ); ?> |
| 235 | </td> |
| 236 | </tr> |
| 237 | <tr> |
| 238 | <th scope="row"><?php _e( 'Date range' ); ?></th> |
| 239 | <td> |
| 240 | <fieldset> |
| 241 | <label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label> |
| 242 | <select name="page_start_date" id="page-start-date"> |
| 243 | <option value="0"><?php _e( '— Select —' ); ?></option> |
| 244 | <?php export_date_options( 'page' ); ?> |
| 245 | </select> |
| 246 | <label for="page-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label> |
| 247 | <select name="page_end_date" id="page-end-date"> |
| 248 | <option value="0"><?php _e( '— Select —' ); ?></option> |
| 249 | <?php export_date_options( 'page' ); ?> |
| 250 | </select> |
| 251 | </fieldset> |
| 252 | </td> |
| 253 | </tr> |
| 254 | <tr> |
| 255 | <th scope="row"><?php _e( 'Status' ); ?></th> |
| 256 | <td> |
| 257 | <select name="page_status" id="page-status"> |
| 258 | <option value="0"><?php _e( 'All' ); ?></option> |
| 259 | <?php foreach ( $post_stati as $status ) : ?> |
| 260 | <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> |
| 261 | <?php endforeach; ?> |
| 262 | </select> |
| 263 | </td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </div> |
262 | | <ul id="attachment-filters" class="export-filters"> |
263 | | <li> |
264 | | <fieldset> |
265 | | <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend> |
266 | | <label for="attachment-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label> |
267 | | <select name="attachment_start_date" id="attachment-start-date"> |
268 | | <option value="0"><?php _e( '— Select —' ); ?></option> |
269 | | <?php export_date_options( 'attachment' ); ?> |
270 | | </select> |
271 | | <label for="attachment-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label> |
272 | | <select name="attachment_end_date" id="attachment-end-date"> |
273 | | <option value="0"><?php _e( '— Select —' ); ?></option> |
274 | | <?php export_date_options( 'attachment' ); ?> |
275 | | </select> |
276 | | </fieldset> |
277 | | </li> |
278 | | </ul> |
| 273 | <div id="attachment-filters" class="export-filters"> |
| 274 | <table class="form-table"> |
| 275 | <tr> |
| 276 | <th scope="row"><?php _e( 'Date range' ); ?></th> |
| 277 | <td> |
| 278 | <fieldset> |
| 279 | <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend> |
| 280 | <label for="attachment-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label> |
| 281 | <select name="attachment_start_date" id="attachment-start-date"> |
| 282 | <option value="0"><?php _e( '— Select —' ); ?></option> |
| 283 | <?php export_date_options( 'attachment' ); ?> |
| 284 | </select> |
| 285 | <label for="attachment-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label> |
| 286 | <select name="attachment_end_date" id="attachment-end-date"> |
| 287 | <option value="0"><?php _e( '— Select —' ); ?></option> |
| 288 | <?php export_date_options( 'attachment' ); ?> |
| 289 | </select> |
| 290 | </fieldset> |
| 291 | </td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </div> |