Ticket #23396: revisions-page-patch-2-responsive.diff
File revisions-page-patch-2-responsive.diff, 4.4 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
1371 1371 } 1372 1372 1373 1373 /* translators: post revision: 1: when, 2: author name */ 1374 $titlef = _x( ' %1$s by%2$s', 'post revision' );1374 $titlef = _x( '<strong>%1$s:</strong> %2$s', 'post revision' ); 1375 1375 1376 1376 if ( $parent ) 1377 1377 array_unshift( $revisions, $post ); … … 1387 1387 1388 1388 $date = wp_post_revision_title( $revision ); 1389 1389 $name = get_the_author_meta( 'display_name', $revision->post_author ); 1390 1390 1391 1391 1392 if ( 'form-table' == $format ) { 1392 1393 if ( $left ) … … 1402 1403 else 1403 1404 $actions = ''; 1404 1405 1406 $avatar = get_avatar( $revision->post_author, 24 ); 1405 1407 $rows .= "<tr$class>\n"; 1406 1408 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /></th>\n"; 1407 1409 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n"; 1408 $rows .= "\t<td>$date</td>\n"; 1409 $rows .= "\t<td>$name</td>\n"; 1410 $rows .= "\t<td class='revision-details'>$avatar <strong>$name:</strong> $date</td>\n"; 1410 1411 $rows .= "\t<td class='action-links'>$actions</td>\n"; 1411 1412 $rows .= "</tr>\n"; 1412 1413 } else { 1413 $title = sprintf( $titlef, $date, $name ); 1414 $rows .= "\t<li>$title</li>\n"; 1414 $avatar = get_avatar( $revision->post_author, 18 ); 1415 $title = sprintf( $titlef, $name, $date ); 1416 $rows .= "\t<li>$avatar $title</li>\n"; 1415 1417 } 1416 1418 } 1417 1419 … … 1432 1434 <table class="widefat post-revisions" cellspacing="0" id="post-revisions"> 1433 1435 <col /> 1434 1436 <col /> 1435 <col style="width: 33%" /> 1436 <col style="width: 33%" /> 1437 <col style="width: 33%" /> 1437 <col style="width: 75%" /> 1438 <col style="width: 10%" /> 1438 1439 <thead> 1439 1440 <tr> 1440 1441 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Old', 'revisions column name' ); ?></th> 1441 1442 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'New', 'revisions column name' ); ?></th> 1442 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Date Created', 'revisions column name' ); ?></th> 1443 <th scope="col"><?php _e( 'Author' ); ?></th> 1443 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Revision Details', 'revisions column name' ); ?></th> 1444 1444 <th scope="col" class="action-links"><?php _e( 'Actions' ); ?></th> 1445 1445 </tr> 1446 1446 </thead> -
wp-admin/revision.php
153 153 154 154 <h2 class="long-header"><?php echo $h2; ?></h2> 155 155 156 <table class="form-table ie-fixed ">156 <table class="form-table ie-fixed revision-compare"> 157 157 <col class="th" /> 158 158 <?php if ( 'diff' == $action ) : ?> 159 159 <tr id="revision"> 160 <th scope="row"></th>161 160 <th scope="col" class="th-full"> 162 161 <span class="alignleft"><?php printf( __('Older: %s'), wp_post_revision_title( $left_revision ) ); ?></span> 163 162 <span class="alignright"><?php printf( __('Newer: %s'), wp_post_revision_title( $right_revision ) ); ?></span> … … 181 180 ?> 182 181 183 182 <tr id="revision-field-<?php echo $field; ?>"> 184 <th scope="row"><?php echo esc_html( $field_title ); ?></th>185 183 <td><div class="pre"><?php echo $content; ?></div></td> 186 184 </tr> 187 185 … … 203 201 204 202 </table> 205 203 206 <br class="clear" /> 207 204 <div id="revisions-detail-list"> 208 205 <h3><?php echo $title; ?></h3> 209 206 210 207 <?php … … 216 213 wp_list_post_revisions( $post, $args ); 217 214 218 215 ?> 219 220 216 </div> 217 </div> 221 218 222 219 <?php 223 220 require_once( './admin-footer.php' ); -
wp-admin/css/wp-admin.css
8585 8585 .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap { 8586 8586 margin-left: 8em; 8587 8587 } 8588 ul.post-revisions img { 8589 float: left; 8590 margin: 2px; 8591 } 8592 ul.post-revisions li { 8593 border-bottom: 1px solid #FFF; 8594 } 8595 ul.post-revisions li a { 8596 line-height: 24px; 8597 } 8598 table#post-revisions tr td.revision-details { 8599 line-height: 30px; 8600 padding: 0; 8601 vertical-align: middle;; 8602 } 8603 table#post-revisions tr td img { 8604 float: left; 8605 margin: 4px; 8606 } 8607 @media screen and (min-width: 1200px) { 8608 .revision-compare { 8609 float: right; 8610 width: 70%; 8611 } 8612 #revisions-detail-list { 8613 float: left; 8614 width: 30%; 8615 } 8616 } 8617 No newline at end of file