Wordpress 3.7
[autoinstalls/wordpress.git] / wp-content / themes / twentytwelve / content-status.php
1 <?php
2 /**
3  * The template for displaying posts in the Status post format
4  *
5  * @package WordPress
6  * @subpackage Twenty_Twelve
7  * @since Twenty Twelve 1.0
8  */
9 ?>
10
11         <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12                 <div class="entry-header">
13                         <header>
14                                 <h1><?php the_author(); ?></h1>
15                                 <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
16                         </header>
17                         <?php
18                         /**
19                          * Filter the status avatar size.
20                          *
21                          * @since Twenty Twelve 1.0
22                          *
23                          * @param int $size The height and width of the avatar in pixels.
24                          */
25                         $status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 );
26                         echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar );
27                         ?>
28                 </div><!-- .entry-header -->
29
30                 <div class="entry-content">
31                         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
32                 </div><!-- .entry-content -->
33
34                 <footer class="entry-meta">
35                         <?php if ( comments_open() ) : ?>
36                         <div class="comments-link">
37                                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
38                         </div><!-- .comments-link -->
39                         <?php endif; // comments_open() ?>
40                         <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
41                 </footer><!-- .entry-meta -->
42         </article><!-- #post -->