Changeset 33490
- Timestamp:
- 07/29/2015 06:07:03 PM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r33269 r33490 16 16 } 17 17 18 .column-response .post-com-count .screen-reader-text {19 position: static;20 width: auto;21 height: auto;22 margin: 0;23 }24 25 .column-response .post-com-count [aria-hidden="true"] {26 display: none;27 }28 29 18 .post-com-count-wrapper strong { 30 19 font-weight: 400; 31 }32 33 .column-response .post-com-count.post-com-count-pending {34 color: #bb2a2a;35 20 } 36 21 … … 40 25 } 41 26 27 .column-response .post-com-count-wrapper, 42 28 .column-comments .post-com-count-wrapper { 43 29 white-space: nowrap; … … 46 32 47 33 /* comments bubble common */ 34 .column-response .post-com-count, 48 35 .column-comments .post-com-count { 49 36 display: inline-block; … … 51 38 } 52 39 53 .column-response .post-com-count {54 display: block;55 }56 57 40 /* comments bubble approved */ 41 .column-response .post-com-count-no-comments, 42 .column-response .post-com-count-approved, 58 43 .column-comments .post-com-count-no-comments, 59 44 .column-comments .post-com-count-approved { … … 61 46 } 62 47 48 .column-response .comment-count-no-comments, 49 .column-response .comment-count-approved, 63 50 .column-comments .comment-count-no-comments, 64 51 .column-comments .comment-count-approved { … … 79 66 } 80 67 68 .ie8 .column-response .comment-count-no-comments, 69 .ie8 .column-response .comment-count-approved, 81 70 .ie8 .column-comments .comment-count-no-comments, 82 71 .ie8 .column-comments .comment-count-approved { … … 84 73 } 85 74 75 .column-response .post-com-count-no-comments:after, 76 .column-response .post-com-count-approved:after, 86 77 .column-comments .post-com-count-no-comments:after, 87 78 .column-comments .post-com-count-approved:after { … … 95 86 } 96 87 88 .column-response .post-com-count-approved:hover .comment-count-approved, 89 .column-response .post-com-count-approved:focus .comment-count-approved, 97 90 .column-comments .post-com-count-approved:hover .comment-count-approved, 98 91 .column-comments .post-com-count-approved:focus .comment-count-approved { … … 100 93 } 101 94 95 .column-response .post-com-count-approved:hover:after, 96 .column-response .post-com-count-approved:focus:after, 102 97 .column-comments .post-com-count-approved:hover:after, 103 98 .column-comments .post-com-count-approved:focus:after { … … 106 101 107 102 /* comments bubble pending */ 103 .column-response .post-com-count-pending, 108 104 .column-comments .post-com-count-pending { 109 105 position: relative; … … 207 203 .commentlist .avatar { 208 204 vertical-align: text-top; 209 }210 211 #the-comment-list .attachment-80x60 {212 padding: 4px 8px;213 205 } 214 206 … … 1855 1847 } 1856 1848 1849 .column-response .post-com-count-no-comments:after, 1850 .column-response .post-com-count-approved:after, 1857 1851 .column-comments .post-com-count-no-comments:after, 1858 1852 .column-comments .post-com-count-approved:after { … … 1860 1854 } 1861 1855 1856 .column-response .post-com-count [aria-hidden="true"], 1862 1857 .column-comments .post-com-count [aria-hidden="true"] { 1863 1858 display: none; 1864 1859 } 1865 1860 1861 .column-response .post-com-count-wrapper, 1866 1862 .column-comments .post-com-count-wrapper { 1867 1863 white-space: normal; 1868 1864 } 1869 1865 1866 .column-response .post-com-count-wrapper > a, 1870 1867 .column-comments .post-com-count-wrapper > a { 1871 1868 display: block; 1872 1869 } 1873 1870 1871 .column-response .post-com-count-no-comments, 1872 .column-response .post-com-count-approved, 1874 1873 .column-comments .post-com-count-no-comments, 1875 1874 .column-comments .post-com-count-approved { … … 1878 1877 } 1879 1878 1879 .column-response .post-com-count-pending, 1880 1880 .column-comments .post-com-count-pending { 1881 1881 position: static; … … 1893 1893 } 1894 1894 1895 .column-response .post-com-count-pending:hover, 1895 1896 .column-comments .post-com-count-pending:hover { 1896 1897 color: #dc3232; -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r33436 r33490 688 688 689 689 echo '<div class="response-links">'; 690 if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) { 691 echo $thumb; 692 } 690 693 echo $post_link; 691 694 $post_type_object = get_post_type_object( $post->post_type ); 692 695 echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>'; 693 if ( 'attachment' == $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) {694 echo $thumb;695 }696 echo '</div>';697 696 echo '<span class="post-com-count-wrapper">'; 698 697 $this->comments_bubble( $post->ID, $pending_comments ); 699 698 echo '</span> '; 699 echo '</div>'; 700 700 } 701 701
Note: See TracChangeset
for help on using the changeset viewer.