- Timestamp:
- 12/11/2014 04:11:28 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r30754 r30813 166 166 ?> 167 167 <div class="wp-filter"> 168 <?php $this->view_switcher( $mode ); ?> 169 170 <select class="attachment-filters" name="attachment-filter"> 171 <?php 168 <div class="filter-items"> 169 <?php $this->view_switcher( $mode ); ?> 170 171 <select class="attachment-filters" name="attachment-filter"> 172 <?php 173 if ( ! empty( $views ) ) { 174 foreach ( $views as $class => $view ) { 175 echo "\t$view\n"; 176 } 177 } 178 ?> 179 </select> 180 181 <?php 182 $this->extra_tablenav( 'bar' ); 183 184 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 185 $views = apply_filters( "views_{$this->screen->id}", array() ); 186 187 // Back compat for pre-4.0 view links. 172 188 if ( ! empty( $views ) ) { 189 echo '<ul class="filter-links">'; 173 190 foreach ( $views as $class => $view ) { 174 echo "\t$view\n"; 175 } 176 } 177 ?> 178 </select> 179 180 <?php 181 $this->extra_tablenav( 'bar' ); 182 183 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 184 $views = apply_filters( "views_{$this->screen->id}", array() ); 185 186 // Back compat for pre-4.0 view links. 187 if ( ! empty( $views ) ) { 188 echo '<ul class="filter-links">'; 189 foreach ( $views as $class => $view ) { 190 echo "<li class='$class'>$view</li>"; 191 } 192 echo '</ul>'; 193 } 194 ?> 191 echo "<li class='$class'>$view</li>"; 192 } 193 echo '</ul>'; 194 } 195 ?> 196 </div> 195 197 196 198 <div class="search-form">
Note: See TracChangeset
for help on using the changeset viewer.