Ticket #29748: 29748-wp-content.patch
File 29748-wp-content.patch, 31.4 KB (added by , 9 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/archive.php
48 48 the_posts_pagination( array( 49 49 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 50 50 'next_text' => __( 'Next page', 'twentyfifteen' ), 51 /* translators: accessibility text */ 51 52 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 52 53 ) ); 53 54 -
src/wp-content/themes/twentyfifteen/content-link.php
29 29 /* translators: %s: Name of current post */ 30 30 the_content( sprintf( 31 31 __( 'Continue reading %s', 'twentyfifteen' ), 32 /* translators: accessibility text */ 32 33 the_title( '<span class="screen-reader-text">', '</span>', false ) 33 34 ) ); 34 35 … … 37 38 'after' => '</div>', 38 39 'link_before' => '<span>', 39 40 'link_after' => '</span>', 41 /* translators: accessibility text */ 40 42 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 41 43 'separator' => '<span class="screen-reader-text">, </span>', 42 44 ) ); -
src/wp-content/themes/twentyfifteen/content-page.php
26 26 'after' => '</div>', 27 27 'link_before' => '<span>', 28 28 'link_after' => '</span>', 29 /* translators: accessibility text */ 29 30 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 30 31 'separator' => '<span class="screen-reader-text">, </span>', 31 32 ) ); -
src/wp-content/themes/twentyfifteen/content.php
31 31 /* translators: %s: Name of current post */ 32 32 the_content( sprintf( 33 33 __( 'Continue reading %s', 'twentyfifteen' ), 34 /* translators: accessibility text */ 34 35 the_title( '<span class="screen-reader-text">', '</span>', false ) 35 36 ) ); 36 37 … … 39 40 'after' => '</div>', 40 41 'link_before' => '<span>', 41 42 'link_after' => '</span>', 43 /* translators: accessibility text */ 42 44 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 43 45 'separator' => '<span class="screen-reader-text">, </span>', 44 46 ) ); -
src/wp-content/themes/twentyfifteen/functions.php
266 266 267 267 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true ); 268 268 wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array( 269 /* translators: accessibility text */ 269 270 'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>', 271 /* translators: accessibility text */ 270 272 'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>', 271 273 ) ); 272 274 } … … 343 345 * @return string Modified search form HTML. 344 346 */ 345 347 function twentyfifteen_search_form_modify( $html ) { 348 /* translators: accessibility text */ 346 349 return str_replace( 'class="search-submit"', 'class="search-submit screen-reader-text"', $html ); 347 350 } 348 351 add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' ); -
src/wp-content/themes/twentyfifteen/header.php
23 23 24 24 <body <?php body_class(); ?>> 25 25 <div id="page" class="hfeed site"> 26 <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a> 26 <a class="skip-link screen-reader-text" href="#content"><?php 27 /* translators: accessibility text */ 28 _e( 'Skip to content', 'twentyfifteen' ); 29 ?></a> 27 30 28 31 <div id="sidebar" class="sidebar"> 29 32 <header id="masthead" class="site-header" role="banner"> -
src/wp-content/themes/twentyfifteen/image.php
60 60 'after' => '</div>', 61 61 'link_before' => '<span>', 62 62 'link_after' => '</span>', 63 /* translators: accessibility text */ 63 64 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 64 65 'separator' => '<span class="screen-reader-text">, </span>', 65 66 ) ); -
src/wp-content/themes/twentyfifteen/inc/template-tags.php
20 20 if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : 21 21 ?> 22 22 <nav class="navigation comment-navigation" role="navigation"> 23 <h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2> 23 <h2 class="screen-reader-text"><?php 24 /* translators: accessibility text */ 25 _e( 'Comment navigation', 'twentyfifteen' ); 26 ?></h2> 24 27 <div class="nav-links"> 25 28 <?php 26 29 if ( $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ) ) : … … 51 54 52 55 $format = get_post_format(); 53 56 if ( current_theme_supports( 'post-formats', $format ) ) { 57 /* translators: 1: accessibility text: format, 2: link, 3: post format */ 54 58 printf( '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', 55 59 sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'twentyfifteen' ) ), 56 60 esc_url( get_post_format_link( $format ) ), … … 72 76 get_the_modified_date() 73 77 ); 74 78 79 /* translators: 1: accessibility text, 2: permalink, 3: time */ 75 80 printf( '<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', 76 81 _x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), 77 82 esc_url( get_permalink() ), … … 81 86 82 87 if ( 'post' == get_post_type() ) { 83 88 if ( is_singular() || is_multi_author() ) { 89 /* translators: 1: accessibility text, 2: author link, 3: author name */ 84 90 printf( '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', 85 91 _x( 'Author', 'Used before post author name.', 'twentyfifteen' ), 86 92 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), … … 90 96 91 97 $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); 92 98 if ( $categories_list && twentyfifteen_categorized_blog() ) { 99 /* translators: 1: accessibility text, 2: category list */ 93 100 printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 94 101 _x( 'Categories', 'Used before category names.', 'twentyfifteen' ), 95 102 $categories_list … … 98 105 99 106 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); 100 107 if ( $tags_list ) { 108 /* translators: 1: accessibility text, 2: tag list */ 101 109 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 102 110 _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), 103 111 $tags_list … … 109 117 // Retrieve attachment metadata. 110 118 $metadata = wp_get_attachment_metadata(); 111 119 120 /* translators: 1: accessibility text, 2: link, 3: width, 4: height */ 112 121 printf( '<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', 113 122 _x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), 114 123 esc_url( wp_get_attachment_url() ), … … 119 128 120 129 if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 121 130 echo '<span class="comments-link">'; 122 /* translators: %s: post title */131 /* translators: accessibility text: %s: post title */ 123 132 comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) ); 124 133 echo '</span>'; 125 134 } … … 235 244 $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', 236 245 esc_url( get_permalink( get_the_ID() ) ), 237 246 /* translators: %s: Name of current post */ 238 sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 247 sprintf( __( 'Continue reading %s', 'twentyfifteen' ), 248 /* translators: accessibility text */ 249 '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 239 250 ); 240 251 return ' … ' . $link; 241 252 } -
src/wp-content/themes/twentyfifteen/index.php
23 23 24 24 <?php if ( is_home() && ! is_front_page() ) : ?> 25 25 <header> 26 <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> 26 <h1 class="page-title screen-reader-text"><?php 27 /* translators: %s: accessibility text */ 28 single_post_title(); 29 ?></h1> 27 30 </header> 28 31 <?php endif; ?> 29 32 … … 45 48 the_posts_pagination( array( 46 49 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 47 50 'next_text' => __( 'Next page', 'twentyfifteen' ), 51 /* translators: accessibility text */ 48 52 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 49 53 ) ); 50 54 -
src/wp-content/themes/twentyfifteen/search.php
37 37 the_posts_pagination( array( 38 38 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 39 39 'next_text' => __( 'Next page', 'twentyfifteen' ), 40 /* translators: accessibility text */ 40 41 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 41 42 ) ); 42 43 -
src/wp-content/themes/twentyfourteen/comments.php
31 31 32 32 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 33 33 <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> 34 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 34 <h1 class="screen-reader-text"><?php 35 /* translators: accessibility text */ 36 _e( 'Comment navigation', 'twentyfourteen' ); 37 ?></h1> 35 38 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 36 39 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> 37 40 </nav><!-- #comment-nav-above --> … … 49 52 50 53 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> 51 54 <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> 52 <h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1> 55 <h1 class="screen-reader-text"><?php 56 /* translators: accessibility text */ 57 _e( 'Comment navigation', 'twentyfourteen' ); 58 ?></h1> 53 59 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div> 54 60 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div> 55 61 </nav><!-- #comment-nav-below --> -
src/wp-content/themes/twentyfourteen/content-aside.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-audio.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-gallery.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-image.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-link.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-quote.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content-video.php
46 46 /* translators: %s: Name of current post */ 47 47 the_content( sprintf( 48 48 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 49 /* translators: accessibility text */ 49 50 the_title( '<span class="screen-reader-text">', '</span>', false ) 50 51 ) ); 51 52 -
src/wp-content/themes/twentyfourteen/content.php
54 54 /* translators: %s: Name of current post */ 55 55 the_content( sprintf( 56 56 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 57 /* translators: accessibility text */ 57 58 the_title( '<span class="screen-reader-text">', '</span>', false ) 58 59 ) ); 59 60 -
src/wp-content/themes/twentyfourteen/header.php
45 45 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 46 46 47 47 <div class="search-toggle"> 48 <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a> 48 <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php 49 /* translators: accessibility text */ 50 _e( 'Search', 'twentyfourteen' ); 51 ?></a> 49 52 </div> 50 53 51 54 <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation"> 52 55 <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> 53 <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a> 56 <a class="screen-reader-text skip-link" href="#content"><?php 57 /* translators: accessibility text */ 58 _e( 'Skip to content', 'twentyfourteen' ); 59 ?></a> 54 60 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?> 55 61 </nav> 56 62 </div> -
src/wp-content/themes/twentyfourteen/inc/template-tags.php
55 55 56 56 ?> 57 57 <nav class="navigation paging-navigation" role="navigation"> 58 <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1> 58 <h1 class="screen-reader-text"><?php 59 /* translators: accessibility text */ 60 _e( 'Posts navigation', 'twentyfourteen' ); 61 ?></h1> 59 62 <div class="pagination loop-pagination"> 60 63 <?php echo $links; ?> 61 64 </div><!-- .pagination --> … … 82 85 83 86 ?> 84 87 <nav class="navigation post-navigation" role="navigation"> 85 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1> 88 <h1 class="screen-reader-text"><?php 89 /* translators: accessibility text */ 90 _e( 'Post navigation', 'twentyfourteen' ); 91 ?></h1> 86 92 <div class="nav-links"> 87 93 <?php 88 94 if ( is_attachment() ) : … … 219 225 $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', 220 226 esc_url( get_permalink( get_the_ID() ) ), 221 227 /* translators: %s: Name of current post */ 222 sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 228 sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), 229 /* translators: accessibility text */ 230 '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 223 231 ); 224 232 return ' … ' . $link; 225 233 } -
src/wp-content/themes/twentyten/header.php
102 102 103 103 <div id="access" role="navigation"> 104 104 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> 105 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> 105 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php 106 /* translators: accessibility text */ 107 _e( 'Skip to content', 'twentyten' ); 108 ?></a></div> 106 109 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> 107 110 <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> 108 111 </div><!-- #access --> -
src/wp-content/themes/twentythirteen/comments.php
42 42 if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : 43 43 ?> 44 44 <nav class="navigation comment-navigation" role="navigation"> 45 <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1> 45 <h1 class="screen-reader-text section-heading"><?php 46 /* translators: accessibility text */ 47 _e( 'Comment navigation', 'twentythirteen' ); 48 ?></h1> 46 49 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div> 47 50 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div> 48 51 </nav><!-- .comment-navigation --> … … 56 59 57 60 <?php comment_form(); ?> 58 61 59 </div><!-- #comments --> 60 No newline at end of file 62 </div><!-- #comments --> -
src/wp-content/themes/twentythirteen/content-aside.php
14 14 /* translators: %s: Name of current post */ 15 15 the_content( sprintf( 16 16 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 17 /* translators: accessibility text */ 17 18 the_title( '<span class="screen-reader-text">', '</span>', false ) 18 19 ) ); 19 20 -
src/wp-content/themes/twentythirteen/content-audio.php
25 25 /* translators: %s: Name of current post */ 26 26 the_content( sprintf( 27 27 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 28 /* translators: accessibility text */ 28 29 the_title( '<span class="screen-reader-text">', '</span>', false ) 29 30 ) ); 30 31 -
src/wp-content/themes/twentythirteen/content-chat.php
24 24 /* translators: %s: Name of current post */ 25 25 the_content( sprintf( 26 26 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 27 /* translators: accessibility text */ 27 28 the_title( '<span class="screen-reader-text">', '</span>', false ) 28 29 ) ); 29 30 -
src/wp-content/themes/twentythirteen/content-gallery.php
25 25 /* translators: %s: Name of current post */ 26 26 the_content( sprintf( 27 27 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 28 /* translators: accessibility text */ 28 29 the_title( '<span class="screen-reader-text">', '</span>', false ) 29 30 ) ); 30 31 -
src/wp-content/themes/twentythirteen/content-image.php
24 24 /* translators: %s: Name of current post */ 25 25 the_content( sprintf( 26 26 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 27 /* translators: accessibility text */ 27 28 the_title( '<span class="screen-reader-text">', '</span>', false ) 28 29 ) ); 29 30 -
src/wp-content/themes/twentythirteen/content-link.php
25 25 /* translators: %s: Name of current post */ 26 26 the_content( sprintf( 27 27 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 28 /* translators: accessibility text */ 28 29 the_title( '<span class="screen-reader-text">', '</span>', false ) 29 30 ) ); 30 31 -
src/wp-content/themes/twentythirteen/content-quote.php
14 14 /* translators: %s: Name of current post */ 15 15 the_content( sprintf( 16 16 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 17 /* translators: accessibility text */ 17 18 the_title( '<span class="screen-reader-text">', '</span>', false ) 18 19 ) ); 19 20 -
src/wp-content/themes/twentythirteen/content-status.php
14 14 /* translators: %s: Name of current post */ 15 15 the_content( sprintf( 16 16 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 17 /* translators: accessibility text */ 17 18 the_title( '<span class="screen-reader-text">', '</span>', false ) 18 19 ) ); 19 20 -
src/wp-content/themes/twentythirteen/content-video.php
24 24 /* translators: %s: Name of current post */ 25 25 the_content( sprintf( 26 26 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 27 /* translators: accessibility text */ 27 28 the_title( '<span class="screen-reader-text">', '</span>', false ) 28 29 ) ); 29 30 -
src/wp-content/themes/twentythirteen/content.php
42 42 /* translators: %s: Name of current post */ 43 43 the_content( sprintf( 44 44 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 45 /* translators: accessibility text */ 45 46 the_title( '<span class="screen-reader-text">', '</span>', false ) 46 47 ) ); 47 48 -
src/wp-content/themes/twentythirteen/functions.php
266 266 return; 267 267 ?> 268 268 <nav class="navigation paging-navigation" role="navigation"> 269 <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1> 269 <h1 class="screen-reader-text"><?php 270 /* translators: accessibility text */ 271 _e( 'Posts navigation', 'twentythirteen' ); 272 ?></h1> 270 273 <div class="nav-links"> 271 274 272 275 <?php if ( get_next_posts_link() ) : ?> … … 300 303 return; 301 304 ?> 302 305 <nav class="navigation post-navigation" role="navigation"> 303 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1> 306 <h1 class="screen-reader-text"><?php 307 /* translators: accessibility text */ 308 _e( 'Post navigation', 'twentythirteen' ); 309 ?></h1> 304 310 <div class="nav-links"> 305 311 306 312 <?php previous_post_link( '%link', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', 'twentythirteen' ) ); ?> … … 478 484 $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', 479 485 esc_url( get_permalink( get_the_ID() ) ), 480 486 /* translators: %s: Name of current post */ 481 sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 487 sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), 488 /* translators: accessibility text */ 489 '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 482 490 ); 483 491 return ' … ' . $link; 484 492 } -
src/wp-content/themes/twentythirteen/header.php
41 41 <div id="navbar" class="navbar"> 42 42 <nav id="site-navigation" class="navigation main-navigation" role="navigation"> 43 43 <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button> 44 <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a> 44 <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php 45 /* translators: accessibility text */ 46 _e( 'Skip to content', 'twentythirteen' ); 47 ?></a> 45 48 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'menu_id' => 'primary-menu' ) ); ?> 46 49 <?php get_search_form(); ?> 47 50 </nav><!-- #site-navigation -->