[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Template for displaying posts in the Aside 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( 'Aside', '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 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> 36 <?php 37 wp_link_pages( 38 array( 39 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 40 'after' => '</div>', 41 ) 42 ); 43 ?> 44 </div><!-- .entry-content --> 45 <?php endif; ?> 46 47 <footer class="entry-meta"> 48 <?php twentyeleven_posted_on(); ?> 49 <?php if ( comments_open() ) : ?> 50 <span class="sep"> | </span> 51 <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> 52 <?php endif; ?> 53 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 54 </footer><!-- .entry-meta --> 55 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Dec 3 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |