]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentythirteen/content.php
4f61b220665fd2fde4b1dcf5d9cb1fc29ffac472
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / content.php
1 <?php
2 /**
3  * The default template for displaying content. Used for both single and index/archive/search.
4  *
5  * @package WordPress
6  * @subpackage Twenty_Thirteen
7  * @since Twenty Thirteen 1.0
8  */
9 ?>
10
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12         <header class="entry-header">
13                 <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
14                 <div class="entry-thumbnail">
15                         <?php the_post_thumbnail(); ?>
16                 </div>
17                 <?php endif; ?>
18
19                 <?php if ( is_single() ) : ?>
20                 <h1 class="entry-title"><?php the_title(); ?></h1>
21                 <?php else : ?>
22                 <h1 class="entry-title">
23                         <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
24                 </h1>
25                 <?php endif; // is_single() ?>
26
27                 <div class="entry-meta">
28                         <?php twentythirteen_entry_meta(); ?>
29                         <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
30                 </div><!-- .entry-meta -->
31         </header><!-- .entry-header -->
32
33         <?php if ( is_search() ) : // Only display Excerpts for Search ?>
34         <div class="entry-summary">
35                 <?php the_excerpt(); ?>
36         </div><!-- .entry-summary -->
37         <?php else : ?>
38         <div class="entry-content">
39                 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
40                 <?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>' ) ); ?>
41         </div><!-- .entry-content -->
42         <?php endif; ?>
43
44         <footer class="entry-meta">
45                 <?php if ( comments_open() && ! is_single() ) : ?>
46                         <div class="comments-link">
47                                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
48                         </div><!-- .comments-link -->
49                 <?php endif; // comments_open() ?>
50
51                 <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
52                         <?php get_template_part( 'author-bio' ); ?>
53                 <?php endif; ?>
54         </footer><!-- .entry-meta -->
55 </article><!-- #post -->