Ticket #45424: 45424.14.patch
File 45424.14.patch, 5.7 KB (added by , 6 years ago) |
---|
-
src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
51 51 * fill color to the inner check shape when in circle form. 52 52 */ 53 53 if ( twentynineteen_is_comment_by_post_author( $comment ) ) { 54 /* translators: %s: SVG Icon */55 54 printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) ); 56 55 } 57 56 … … 110 109 ?> 111 110 <?php 112 111 } 113 114 112 } -
src/wp-content/themes/twentynineteen/inc/template-tags.php
40 40 */ 41 41 function twentynineteen_posted_by() { 42 42 printf( 43 /* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */ 43 44 '<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>', 44 /* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */45 45 twentynineteen_get_icon_svg( 'person', 16 ), 46 46 __( 'Posted by', 'twentynineteen' ), 47 47 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), … … 85 85 /* translators: used between list items, there is a space after the comma. */ 86 86 $categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) ); 87 87 if ( $categories_list ) { 88 /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of categories. */89 88 printf( 89 /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of categories. */ 90 90 '<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>', 91 91 twentynineteen_get_icon_svg( 'archive', 16 ), 92 92 __( 'Posted in', 'twentynineteen' ), … … 97 97 /* translators: used between list items, there is a space after the comma. */ 98 98 $tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) ); 99 99 if ( $tags_list ) { 100 /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */101 100 printf( 101 /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ 102 102 '<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>', 103 103 twentynineteen_get_icon_svg( 'tag', 16 ), 104 104 __( 'Tags:', 'twentynineteen' ), … … 157 157 158 158 <figure class="post-thumbnail"> 159 159 <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"> 160 <?php 161 the_post_thumbnail( 'post-thumbnail' ); 162 ?> 160 <?php the_post_thumbnail( 'post-thumbnail' ); ?> 163 161 </a> 164 162 </figure> 165 163 … … 210 208 211 209 comment_form( 212 210 array( 213 'logged_in_as' 214 'title_reply' 211 'logged_in_as' => null, 212 'title_reply' => null, 215 213 ) 216 214 ); 217 215 } … … 223 221 * Documentation for function. 224 222 */ 225 223 function twentynineteen_the_posts_navigation() { 226 $prev_icon = twentynineteen_get_icon_svg( 'chevron_left', 22 );227 $next_icon = twentynineteen_get_icon_svg( 'chevron_right', 22 );228 224 the_posts_pagination( 229 225 array( 230 226 'mid_size' => 2, 231 'prev_text' => sprintf( '%s <span class="nav-prev-text">%s</span>', $prev_icon, __( 'Newer posts', 'twentynineteen' ) ), 232 'next_text' => sprintf( '<span class="nav-next-text">%s</span> %s', __( 'Older posts', 'twentynineteen' ), $next_icon ), 227 'prev_text' => sprintf( 228 '%s <span class="nav-prev-text">%s</span>', 229 twentynineteen_get_icon_svg( 'chevron_left', 22 ), 230 __( 'Newer posts', 'twentynineteen' ) 231 ), 232 'next_text' => sprintf( 233 '<span class="nav-next-text">%s</span> %s', 234 __( 'Older posts', 'twentynineteen' ), 235 twentynineteen_get_icon_svg( 'chevron_right', 22 ) 236 ), 233 237 ) 234 238 ); 235 239 } -
src/wp-content/themes/twentynineteen/single.php
27 27 // Parent post navigation. 28 28 the_post_navigation( 29 29 array( 30 'prev_text' => _x( '<span class="meta-nav">Published in</span><br/><span class="post-title">%title</span>', 'Parent post link', 'twentynineteen' ), 30 /* translators: %s: parent post link */ 31 'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentynineteen' ), '%title' ), 31 32 ) 32 33 ); 33 34 } elseif ( is_singular( 'post' ) ) { -
src/wp-content/themes/twentynineteen/template-parts/post/author-bio.php
10 10 if ( (bool) get_the_author_meta( 'description' ) ) : ?> 11 11 <div class="author-bio"> 12 12 <h2 class="author-title"> 13 <?php /* translators: %s: author name */ ?> 13 14 <span class="author-heading"><?php echo esc_html( sprintf( __( 'Published by %s', 'twentynineteen' ), get_the_author() ) ); ?></span> 14 15 </h2> 15 16 <p class="author-description">