[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The default template for displaying content 4 * 5 * Used for both single and index/archive/search. 6 * 7 * @package WordPress 8 * @subpackage Twenty_Fifteen 9 * @since Twenty Fifteen 1.0 10 */ 11 ?> 12 13 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 <?php 15 // Post thumbnail. 16 twentyfifteen_post_thumbnail(); 17 ?> 18 19 <header class="entry-header"> 20 <?php 21 if ( is_single() ) : 22 the_title( '<h1 class="entry-title">', '</h1>' ); 23 else : 24 the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); 25 endif; 26 ?> 27 </header><!-- .entry-header --> 28 29 <div class="entry-content"> 30 <?php 31 the_content( 32 sprintf( 33 /* translators: %s: Post title. Only visible to screen readers. */ 34 __( 'Continue reading %s', 'twentyfifteen' ), 35 the_title( '<span class="screen-reader-text">', '</span>', false ) 36 ) 37 ); 38 39 wp_link_pages( 40 array( 41 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 42 'after' => '</div>', 43 'link_before' => '<span>', 44 'link_after' => '</span>', 45 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 46 'separator' => '<span class="screen-reader-text">, </span>', 47 ) 48 ); 49 ?> 50 </div><!-- .entry-content --> 51 52 <?php 53 // Author bio. 54 if ( is_single() && get_the_author_meta( 'description' ) ) : 55 get_template_part( 'author-bio' ); 56 endif; 57 ?> 58 59 <footer class="entry-footer"> 60 <?php twentyfifteen_entry_meta(); ?> 61 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 62 </footer><!-- .entry-footer --> 63 64 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |