Changeset 29077 for trunk/src/wp-admin/includes/screen.php
- Timestamp:
- 07/10/2014 08:59:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/screen.php
r28500 r29077 1020 1020 <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>"> 1021 1021 <form id="adv-settings" action="" method="post"> 1022 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?> 1022 <?php if ( 1023 isset( $wp_meta_boxes[ $this->id ] ) 1024 || $this->get_option( 'per_page' ) 1025 || $this->get_option( 'media_grid_title' ) 1026 || ( $columns && empty( $columns['_title'] ) ) 1027 ) : ?> 1023 1028 <h5><?php _e( 'Show on screen' ); ?></h5> 1024 1029 <?php … … 1072 1077 <br class="clear" /> 1073 1078 </div> 1079 <?php elseif ( $this->get_option( 'media_grid_title' ) ): ?> 1080 <div class="metabox-prefs media-grid-prefs"> 1081 <?php foreach ( $this->_options as $column => $args ) { 1082 $id = "$column-hide"; 1083 echo '<label for="' . $id . '">'; 1084 $saved = str_replace( 'media_grid_', '', $column ); 1085 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $saved, $hidden ), true, false ) . ' />'; 1086 echo $args['label'] . "</label>\n"; 1087 } ?> 1088 <br class="clear" /> 1089 </div> 1074 1090 <?php endif; 1075 1091
Note: See TracChangeset
for help on using the changeset viewer.