WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/02/2018 11:52:16 PM (12 months ago)
Author:
allancole
Message:

Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.

Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentynineteen/inc/template-tags.php

    r43842 r43860  
    7474    function twentynineteen_entry_footer() {
    7575
    76         // Posted by
    77         twentynineteen_posted_by();
    78 
    79         // Posted on
    80         twentynineteen_posted_on();
    81 
    82         // Hide category and tag text for pages.
     76        // Hide author, post date, category and tag text for pages.
    8377        if ( 'post' === get_post_type() ) {
     78
     79            // Posted by
     80            twentynineteen_posted_by();
     81
     82            // Posted on
     83            twentynineteen_posted_on();
     84
    8485            /* translators: used between list items, there is a space after the comma. */
    8586            $categories_list = get_the_category_list( esc_html__( ', ', 'twentynineteen' ) );
     
    99100                /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */
    100101                printf(
    101                     '<span class="cat-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
     102                    '<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
    102103                    twentynineteen_get_icon_svg( 'tag', 16 ),
    103104                    esc_html__( 'Tags:', 'twentynineteen' ),
     
    155156            ?>
    156157
    157             <figure class="post-thumbnail">
    158                 <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
    159                     <?php
    160                     the_post_thumbnail(
    161                         'post-thumbnail',
    162                         array(
    163                             'alt' => the_title_attribute(
    164                                 array( 'echo' => false )
    165                             ),
    166                         )
    167                     );
    168                     ?>
    169                 </a>
    170             </figure><!-- .post-thumbnail -->
     158        <figure class="post-thumbnail">
     159            <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
     160                <?php
     161                the_post_thumbnail( 'post-thumbnail' );
     162                ?>
     163            </a>
     164        </figure>
    171165
    172166            <?php
Note: See TracChangeset for help on using the changeset viewer.