Changeset 44196
- Timestamp:
- 12/14/2018 09:23:52 PM (6 years ago)
- Location:
- branches/5.0/src/wp-content/themes/twentynineteen
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r43892 r44196 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 } … … 111 110 <?php 112 111 } 113 114 112 } -
branches/5.0/src/wp-content/themes/twentynineteen/functions.php
r44187 r44196 222 222 wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' ); 223 223 224 wp_enqueue_script( 'twentynineteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );225 226 224 if ( has_nav_menu( 'menu-1' ) ) { 227 225 wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.0', true ); … … 236 234 } 237 235 add_action( 'wp_enqueue_scripts', 'twentynineteen_scripts' ); 236 237 /** 238 * Fix skip link focus in IE11. 239 * 240 * This does not enqueue the script because it is tiny and because it is only for IE11, 241 * thus it does not warrant having an entire dedicated blocking script being loaded. 242 * 243 * @link https://git.io/vWdr2 244 */ 245 function twentynineteen_skip_link_focus_fix() { 246 // The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`. 247 ?> 248 <script> 249 /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); 250 </script> 251 <?php 252 } 253 add_action( 'wp_print_footer_scripts', 'twentynineteen_skip_link_focus_fix' ); 238 254 239 255 /** -
branches/5.0/src/wp-content/themes/twentynineteen/inc/template-tags.php
r44187 r44196 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' ), … … 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 ), … … 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 ), -
branches/5.0/src/wp-content/themes/twentynineteen/js/skip-link-focus-fix.js
r43808 r44196 3 3 * 4 4 * Helps with accessibility for keyboard only users. 5 * 6 * This is the source file for what is minified in the twentynineteen_skip_link_focus_fix() PHP function. 5 7 * 6 8 * Learn more: https://git.io/vWdr2 -
branches/5.0/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
r44193 r44196 325 325 margin-bottom: calc(4.33 * #{ $size__spacing-unit}); 326 326 margin-right: 0; 327 padding-left: 0; 327 328 } 328 329 … … 578 579 .blocks-gallery-item:last-child { 579 580 margin-bottom: 16px; 581 } 582 583 figcaption a { 584 color: #fff; 580 585 } 581 586 } -
branches/5.0/src/wp-content/themes/twentynineteen/single.php
r43892 r44196 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 ); -
branches/5.0/src/wp-content/themes/twentynineteen/style-rtl.css
r44193 r44196 3766 3766 margin-bottom: calc(4.33 * 1rem); 3767 3767 margin-left: 0; 3768 padding-right: 0; 3768 3769 } 3769 3770 … … 4046 4047 .entry .entry-content .wp-block-gallery .blocks-gallery-item:last-child { 4047 4048 margin-bottom: 16px; 4049 } 4050 4051 .entry .entry-content .wp-block-gallery figcaption a { 4052 color: #fff; 4048 4053 } 4049 4054 -
branches/5.0/src/wp-content/themes/twentynineteen/style.css
r44193 r44196 3778 3778 margin-bottom: calc(4.33 * 1rem); 3779 3779 margin-right: 0; 3780 padding-left: 0; 3780 3781 } 3781 3782 … … 4058 4059 .entry .entry-content .wp-block-gallery .blocks-gallery-item:last-child { 4059 4060 margin-bottom: 16px; 4061 } 4062 4063 .entry .entry-content .wp-block-gallery figcaption a { 4064 color: #fff; 4060 4065 } 4061 4066 -
branches/5.0/src/wp-content/themes/twentynineteen/template-parts/post/author-bio.php
r43860 r44196 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>
Note: See TracChangeset
for help on using the changeset viewer.