Make WordPress Core


Ignore:
Timestamp:
10/30/2018 02:13:07 AM (7 years 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.

File:
1 edited

Legend:

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

    r43808 r43842  
    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">
     
    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.