3 * The template for displaying posts in the Gallery post format
6 * @subpackage Twenty_Thirteen
7 * @since Twenty Thirteen 1.0
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 <header class="entry-header">
13 <?php if ( is_single() ) : ?>
14 <h1 class="entry-title"><?php the_title(); ?></h1>
16 <h1 class="entry-title">
17 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
19 <?php endif; // is_single() ?>
20 </header><!-- .entry-header -->
22 <div class="entry-content">
23 <?php if ( is_single() || ! get_post_gallery() ) : ?>
25 /* translators: %s: Name of current post */
27 __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
28 the_title( '<span class="screen-reader-text">', '</span>', false )
31 wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
34 <?php echo get_post_gallery(); ?>
35 <?php endif; // is_single() ?>
36 </div><!-- .entry-content -->
38 <footer class="entry-meta">
39 <?php twentythirteen_entry_meta(); ?>
41 <?php if ( comments_open() && ! is_single() ) : ?>
42 <span class="comments-link">
43 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
44 </span><!-- .comments-link -->
45 <?php endif; // comments_open() ?>
46 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
48 <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
49 <?php get_template_part( 'author-bio' ); ?>
51 </footer><!-- .entry-meta -->
52 </article><!-- #post -->