3 * The default template for displaying content
5 * Used for both single and index/archive/search.
8 * @subpackage Twenty_Thirteen
9 * @since Twenty Thirteen 1.0
13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
14 <header class="entry-header">
15 <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
16 <div class="entry-thumbnail">
17 <?php the_post_thumbnail(); ?>
21 <?php if ( is_single() ) : ?>
22 <h1 class="entry-title"><?php the_title(); ?></h1>
24 <h1 class="entry-title">
25 <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
27 <?php endif; // is_single() ?>
29 <div class="entry-meta">
30 <?php twentythirteen_entry_meta(); ?>
31 <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
32 </div><!-- .entry-meta -->
33 </header><!-- .entry-header -->
35 <?php if ( is_search() ) : // Only display Excerpts for Search ?>
36 <div class="entry-summary">
37 <?php the_excerpt(); ?>
38 </div><!-- .entry-summary -->
40 <div class="entry-content">
41 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>
42 <?php 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>' ) ); ?>
43 </div><!-- .entry-content -->
46 <footer class="entry-meta">
47 <?php if ( comments_open() && ! is_single() ) : ?>
48 <div class="comments-link">
49 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
50 </div><!-- .comments-link -->
51 <?php endif; // comments_open() ?>
53 <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
54 <?php get_template_part( 'author-bio' ); ?>
56 </footer><!-- .entry-meta -->
57 </article><!-- #post -->