3 * The default template for displaying content
5 * Used for both single and index/archive/search.
8 * @subpackage Twenty_Fourteen
9 * @since Twenty Fourteen 1.0
13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
14 <?php twentyfourteen_post_thumbnail(); ?>
16 <header class="entry-header">
17 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
18 <div class="entry-meta">
19 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
25 the_title( '<h1 class="entry-title">', '</h1>' );
27 the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
31 <div class="entry-meta">
33 if ( 'post' == get_post_type() )
34 twentyfourteen_posted_on();
36 if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
38 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
42 edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
44 </div><!-- .entry-meta -->
45 </header><!-- .entry-header -->
47 <?php if ( is_search() ) : ?>
48 <div class="entry-summary">
49 <?php the_excerpt(); ?>
50 </div><!-- .entry-summary -->
52 <div class="entry-content">
54 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) );
56 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
58 'link_before' => '<span>',
59 'link_after' => '</span>',
62 </div><!-- .entry-content -->
65 <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
66 </article><!-- #post-## -->