Make WordPress Core


Ignore:
Timestamp:
12/14/2018 02:32:33 AM (6 years ago)
Author:
pento
Message:

Default Themes: Import Twenty Nineteen from the 5.0 branch.

Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.

Fixes #45424.

Location:
trunk
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-content/themes/twentynineteen/template-parts/content/content-single.php

    r43808 r44149  
    77 * @package WordPress
    88 * @subpackage Twenty_Nineteen
     9 * @since 1.0.0
    910 */
    1011
     
    1213
    1314<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    14 <?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>
     15    <?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>
    1516    <header class="entry-header">
    16         <?php if ( ! is_page() ) : ?>
    17         <?php $discussion = twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?>
    18         <?php endif; ?>
    19         <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    20         <?php if ( ! is_page() ) : ?>
    21         <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-meta has-discussion' : 'entry-meta'; ?>">
    22             <?php twentynineteen_posted_by(); ?>
    23             <?php twentynineteen_posted_on(); ?>
    24             <span class="comment-count">
    25                 <?php
    26                 if ( ! empty( $discussion ) ) {
    27                 twentynineteen_discussion_avatars_list( $discussion->authors );}
    28                 ?>
    29                 <?php twentynineteen_comment_count(); ?>
    30             </span>
    31             <?php
    32             // Edit post link.
    33                 edit_post_link(
    34                     sprintf(
    35                         wp_kses(
    36                             /* translators: %s: Name of current post. Only visible to screen readers. */
    37                             __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
    38                             array(
    39                                 'span' => array(
    40                                     'class' => array(),
    41                                 ),
    42                             )
    43                         ),
    44                         get_the_title()
    45                     ),
    46                     '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ),
    47                     '</span>'
    48                 );
    49             ?>
    50         </div><!-- .meta-info -->
    51         <?php endif; ?>
     17        <?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
    5218    </header>
    53 <?php endif; ?>
     19    <?php endif; ?>
    5420
    5521    <div class="entry-content">
     
    7238        wp_link_pages(
    7339            array(
    74                 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'twentynineteen' ),
     40                'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ),
    7541                'after'  => '</div>',
    7642            )
     
    8349    </footer><!-- .entry-footer -->
    8450
    85     <?php get_template_part( 'template-parts/post/author', 'info' ); ?>
     51    <?php if ( ! is_singular( 'attachment' ) ) : ?>
     52    <?php get_template_part( 'template-parts/post/author', 'bio' ); ?>
     53    <?php endif; ?>
    8654
    8755</article><!-- #post-${ID} -->
Note: See TracChangeset for help on using the changeset viewer.