Ticket #30152: 30152.2.patch
File 30152.2.patch, 3.5 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 ) : 35 36 $pagination_heading = is_search() ? esc_html( 'Search results navigation', 'twentyfifteen' ) : esc_html( 'Posts navigation', 'twentyfifteen' ); 35 37 ?> 36 38 <nav class="navigation pagination" role="navigation"> 37 <h2 class="screen-reader-text"><?php e sc_html_e( 'Posts navigation', 'twentyfifteen' );?></h2>39 <h2 class="screen-reader-text"><?php echo $pagination_heading ?></h2> 38 40 <div class="nav-links"> 39 41 <?php echo $links; ?> 40 42 </div><!-- .nav-links --> … … 77 79 if ( is_attachment() ) : 78 80 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 81 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' ) );82 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' ) ); 83 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 84 endif; 83 85 ?> 84 86 </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 }