Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / content-link.php
1 <?php
2 /**
3  * The template for displaying posts in the Link Post Format on index and archive pages
4  *
5  * Learn more: http://codex.wordpress.org/Post_Formats
6  *
7  * @package WordPress
8  * @subpackage Twenty_Eleven
9  * @since Twenty Eleven 1.0
10  */
11 ?>
12
13         <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
14                 <header class="entry-header">
15                         <hgroup>
16                                 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
17                                 <h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3>
18                         </hgroup>
19
20                         <?php if ( comments_open() && ! post_password_required() ) : ?>
21                         <div class="comments-link">
22                                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
23                         </div>
24                         <?php endif; ?>
25                 </header><!-- .entry-header -->
26
27                 <?php if ( is_search() ) : // Only display Excerpts for Search ?>
28                 <div class="entry-summary">
29                         <?php the_excerpt(); ?>
30                 </div><!-- .entry-summary -->
31                 <?php else : ?>
32                 <div class="entry-content">
33                         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
34                         <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
35                 </div><!-- .entry-content -->
36                 <?php endif; ?>
37
38                 <footer class="entry-meta">
39                         <?php twentyeleven_posted_on(); ?>
40                         <?php if ( comments_open() ) : ?>
41                         <span class="sep"> | </span>
42                         <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
43                         <?php endif; ?>
44                         <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
45                 </footer><!-- .entry-meta -->
46         </article><!-- #post-<?php the_ID(); ?> -->