[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
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 /* translators: %s: Post title. */ 11 $post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); 12 ?> 13 14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 15 <div class="entry-header"> 16 <header> 17 <h1><?php the_author(); ?></h1> 18 <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2> 19 </header> 20 <?php 21 /** 22 * Filters the status avatar size. 23 * 24 * @since Twenty Twelve 1.0 25 * 26 * @param int $size The height and width of the avatar in pixels. 27 */ 28 $status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 ); 29 echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar ); 30 ?> 31 </div><!-- .entry-header --> 32 33 <div class="entry-content"> 34 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> 35 </div><!-- .entry-content --> 36 37 <footer class="entry-meta"> 38 <?php if ( comments_open() ) : ?> 39 <div class="comments-link"> 40 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> 41 </div><!-- .comments-link --> 42 <?php endif; // comments_open() ?> 43 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 44 </footer><!-- .entry-meta --> 45 </article><!-- #post -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Dec 26 08:20:01 2024 | Cross-referenced by PHPXref |