~canonical-sysadmins/wordpress/5.1.1

« back to all changes in this revision

Viewing changes to wp-content/themes/twentynineteen/template-parts/content/content-excerpt.php

  • Committer: Barry Price
  • Date: 2018-12-12 05:08:33 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: barry.price@canonical.com-20181212050833-y090hmrbmlxy37aa
Merge WP5.0 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Template part for displaying post archives and search results
 
4
 *
 
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 
6
 *
 
7
 * @package WordPress
 
8
 * @subpackage Twenty_Nineteen
 
9
 * @since 1.0.0
 
10
 */
 
11
 
 
12
?>
 
13
 
 
14
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 
15
        <header class="entry-header">
 
16
                <?php
 
17
                if ( is_sticky() && is_home() && ! is_paged() ) {
 
18
                        printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'twentynineteen' ) );
 
19
                }
 
20
                the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
 
21
                ?>
 
22
        </header><!-- .entry-header -->
 
23
 
 
24
        <?php twentynineteen_post_thumbnail(); ?>
 
25
 
 
26
        <div class="entry-content">
 
27
                <?php the_excerpt(); ?>
 
28
        </div><!-- .entry-content -->
 
29
 
 
30
        <footer class="entry-footer">
 
31
                <?php twentynineteen_entry_footer(); ?>
 
32
        </footer><!-- .entry-footer -->
 
33
</article><!-- #post-${ID} -->