[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template for displaying posts in the Status Post Format 4 * 5 * Used on index and archive pages 6 * 7 * @link https://wordpress.org/support/article/post-formats/ 8 * 9 * @package WordPress 10 * @subpackage Twenty_Eleven 11 * @since Twenty Eleven 1.0 12 */ 13 ?> 14 15 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 16 <header class="entry-header"> 17 <hgroup> 18 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 19 <h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3> 20 </hgroup> 21 22 <?php if ( comments_open() && ! post_password_required() ) : ?> 23 <div class="comments-link"> 24 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> 25 </div> 26 <?php endif; ?> 27 </header><!-- .entry-header --> 28 29 <?php if ( is_search() ) : // Only display excerpts for search. ?> 30 <div class="entry-summary"> 31 <?php the_excerpt(); ?> 32 </div><!-- .entry-summary --> 33 <?php else : ?> 34 <div class="entry-content"> 35 <div class="avatar"> 36 <?php 37 /** 38 * Filters the Twenty Eleven status avatar size. 39 * 40 * @since Twenty Eleven 1.0 41 * 42 * @param int The height and width avatar dimensions in pixels. Default 65. 43 */ 44 echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', 65 ) ); 45 ?> 46 </div> 47 48 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 49 <?php 50 wp_link_pages( 51 array( 52 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 53 'after' => '</div>', 54 ) 55 ); 56 ?> 57 </div><!-- .entry-content --> 58 <?php endif; ?> 59 60 <footer class="entry-meta"> 61 <?php twentyeleven_posted_on(); ?> 62 <?php if ( comments_open() ) : ?> 63 <span class="sep"> | </span> 64 <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> 65 <?php endif; ?> 66 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 67 </footer><!-- .entry-meta --> 68 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |