[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[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 /* translators: Hidden accessibility text. */ 46 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 47 'separator' => '<span class="screen-reader-text">, </span>', 48 ) 49 ); 50 ?> 51 </div><!-- .entry-content --> 52 53 <?php 54 // Author bio. 55 if ( is_single() && get_the_author_meta( 'description' ) ) : 56 get_template_part( 'author-bio' ); 57 endif; 58 ?> 59 60 <footer class="entry-footer"> 61 <?php twentyfifteen_entry_meta(); ?> 62 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 63 </footer><!-- .entry-footer --> 64 65 </article><!-- #post-<?php the_ID(); ?> -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |