3 * Template part for displaying gallery posts
5 * @link https://codex.wordpress.org/Template_Hierarchy
8 * @subpackage Twenty_Seventeen
14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
16 if ( is_sticky() && is_home() ) :
17 echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
20 <header class="entry-header">
22 if ( 'post' === get_post_type() ) :
23 echo '<div class="entry-meta">';
25 twentyseventeen_posted_on();
27 echo twentyseventeen_time_link();
28 twentyseventeen_edit_link();
30 echo '</div><!-- .entry-meta -->';
34 the_title( '<h1 class="entry-title">', '</h1>' );
36 the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
39 </header><!-- .entry-header -->
41 <?php if ( '' !== get_the_post_thumbnail() && ! is_single() && ! get_post_gallery() ) : ?>
42 <div class="post-thumbnail">
43 <a href="<?php the_permalink(); ?>">
44 <?php the_post_thumbnail( 'twentyseventeen-featured-image' ); ?>
46 </div><!-- .post-thumbnail -->
49 <div class="entry-content">
51 <?php if ( ! is_single() ) :
53 // If not a single post, highlight the gallery.
54 if ( get_post_gallery() ) :
55 echo '<div class="entry-gallery">';
56 echo get_post_gallery();
62 if ( is_single() || ! get_post_gallery() ) :
64 /* translators: %s: Name of current post */
66 __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
71 'before' => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
73 'link_before' => '<span class="page-number">',
74 'link_after' => '</span>',
79 </div><!-- .entry-content -->
81 <?php if ( is_single() ) : ?>
82 <?php twentyseventeen_entry_footer(); ?>
85 </article><!-- #post-## -->