Ticket #30152: 30152.patch
File 30152.patch, 3.0 KB (added by , 11 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/inc/template-tags.php
24 24 return; 25 25 } 26 26 27 // Set up paginated links. 27 // Set up paginated links. Keep the space before the closing span: screen readers need to have separated words. 28 28 $links = paginate_links( array( 29 'prev_text' => esc_html__( 'Previous ', 'twentyfifteen' ),30 'next_text' => esc_html__( 'Next ', 'twentyfifteen' ),31 'before_page_number' => '<span class="meta-nav ">' . esc_html__( 'Page', 'twentyfifteen' ) . '</span>',29 'prev_text' => esc_html__( 'Previous page', 'twentyfifteen' ), 30 'next_text' => esc_html__( 'Next page', 'twentyfifteen' ), 31 'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>', 32 32 ) ); 33 33 34 34 if ( $links ) : … … 77 77 if ( is_attachment() ) : 78 78 previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Published In</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ) ); 79 79 else : 80 previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Previous </span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) );81 next_post_link( '<div class="nav-next' . $next_class . '">%link</div>', _x( '<span class="meta-nav">Next </span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ) );80 previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Previous <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) ); 81 next_post_link( '<div class="nav-next' . $next_class . '">%link</div>', _x( '<span class="meta-nav">Next <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ) ); 82 82 endif; 83 83 ?> 84 84 </div><!-- .nav-links --> -
src/wp-content/themes/twentyfifteen/style.css
998 998 margin-right: 0.3333em; 999 999 } 1000 1000 1001 .current .screen-reader-text { 1002 position: static !important; 1003 } 1004 1001 1005 .pagination .page-numbers { 1002 1006 display: none; 1003 1007 line-height: 3.2em; 1004 1008 padding: 0 0.6667em; 1009 } 1010 1011 .pagination .page-numbers.current { 1005 1012 text-transform: uppercase; 1006 1013 } 1007 1014 … … 2655 2662 padding: 0; 2656 2663 } 2657 2664 2665 .current .screen-reader-text { 2666 position: absolute !important; 2667 } 2668 2658 2669 .pagination .page-numbers { 2659 2670 display: inline-block; 2660 2671 } 2661 2672 2662 .pagination .meta-nav {2663 display: none;2664 }2665 2666 2673 .image-navigation { 2667 2674 padding: 0 9.0909%; 2668 2675 }