Changeset 32687
- Timestamp:
- 06/03/2015 03:12:19 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r32521 r32687 297 297 } 298 298 299 .fixed .column-icon { 300 width: 80px; 299 /* Media file column */ 300 table.media .column-title { 301 position: relative; 302 } 303 304 table.media .column-title .media-icon { 305 position: absolute; 306 top: 8px; /* match cell padding */ 307 left: 10px; /* match cell padding */ 308 } 309 310 table.media .column-title .media-info, 311 table.media .column-title .row-actions { 312 margin-left: 70px; /* 60px image + margin */ 301 313 } 302 314 … … 1623 1635 .tags .column-description, 1624 1636 .media .column-parent, 1637 .media .column-comments, 1625 1638 .users .column-email, 1626 1639 .users .column-name, … … 1649 1662 .widefat * { 1650 1663 word-wrap: normal; 1664 } 1665 1666 /* Media */ 1667 .media .column-title { 1668 width: auto; 1651 1669 } 1652 1670 -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r32663 r32687 248 248 $posts_columns = array(); 249 249 $posts_columns['cb'] = '<input type="checkbox" />'; 250 $posts_columns['icon'] = '';251 250 /* translators: column name */ 252 251 $posts_columns['title'] = _x( 'File', 'column name' ); … … 362 361 363 362 switch ( $column_name ) { 364 case ' icon':363 case 'title': 365 364 list( $mime ) = explode( '/', $post->post_mime_type ); 366 $attributes = 'class="column-icon media-icon ' . $mime . '-icon"' . $style; 365 366 echo "<div class='media-icon {$mime}-icon'>"; 367 367 368 368 if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) { … … 375 375 } 376 376 } 377 break; 378 379 case 'title': 377 378 echo '</div><div class="media-info">'; 380 379 ?> 381 380 <strong> … … 389 388 _media_states( $post ); ?></strong> 390 389 <p class="filename"><?php echo wp_basename( $post->guid ); ?></p> 390 </div> 391 391 <?php 392 392 break;
Note: See TracChangeset
for help on using the changeset viewer.