- Timestamp:
- 08/22/2013 05:02:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/content-single.php
r25023 r25088 1 <?php2 /**3 * @package WordPress4 * @subpackage Twenty_Fourteen5 */6 ?>7 8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>9 <?php if ( has_post_thumbnail() && ! has_post_format( array( 'video', 'image', 'aside', 'link', 'quote' ) ) ) : ?>10 <div class="attachment-featured-thumbnail">11 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?>12 </div>13 <?php endif; ?>14 15 <header class="entry-header">16 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>17 <div class="entry-meta">18 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>19 </div><!-- .entry-meta -->20 <?php21 endif;22 23 if ( ! has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) :24 the_title( '<h1 class="entry-title">', '</h1>' );25 endif;26 ?>27 28 <div class="entry-meta">29 <?php if ( has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) : ?>30 <span class="post-format">31 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a>32 </span>33 <?php endif; ?>34 35 <?php twentyfourteen_posted_on(); ?>36 37 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>38 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>39 <?php endif; ?>40 41 <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>42 </div><!-- .entry-meta -->43 </header><!-- .entry-header -->44 45 <div class="entry-content">46 <?php47 the_content();48 wp_link_pages( array(49 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',50 'after' => '</div>',51 'link_before' => '<span>',52 'link_after' => '</span>',53 ) );54 ?>55 </div><!-- .entry-content -->56 57 <footer class="entry-meta">58 <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?>59 <div class="entry-meta">60 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>61 </div><!-- .entry-meta -->62 <?php endif; ?>63 64 <?php if ( has_tag() ) : ?>65 <span class="tag-links">66 <?php echo get_the_tag_list(); ?>67 </span>68 <?php endif; ?>69 </footer><!-- .entry-meta -->70 </article><!-- #post-## -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)