- Timestamp:
- 08/14/2013 04:38:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/content-single.php
r24832 r25021 4 4 * @subpackage Twenty_Fourteen 5 5 */ 6 $format = get_post_format(); 7 if ( false === $format ) 8 $format = 'standard'; 6 has_post_format() 9 7 ?> 10 8 11 9 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <?php if ( ( 'video' != $format ) && ( 'image' != $format ) && ( 'aside' != $format ) && ( 'link' != $format ) && ( 'quote' != $format) ) : ?>10 <?php if ( has_post_thumbnail() && ! has_post_format( array( 'video', 'image', 'aside', 'link', 'quote' ) ) ) : ?> 13 11 <div class="attachment-featured-thumbnail"> 14 <?php 15 if ( '' != get_the_post_thumbnail() ) 16 the_post_thumbnail( 'featured-thumbnail-large' ); 17 ?> 12 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?> 18 13 </div> 19 14 <?php endif; ?> 20 15 21 16 <header class="entry-header"> 17 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 22 18 <div class="entry-meta"> 23 <?php 24 /* translators: used between list items, there is a space after the comma */ 25 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) ); 26 if ( $categories_list && twentyfourteen_categorized_blog() ) : 27 ?> 28 <span class="cat-links"> 29 <?php echo $categories_list; ?> 30 </span> 31 <?php endif; // End if categories ?> 19 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 32 20 </div><!-- .entry-meta --> 21 <?php 22 endif; 33 23 34 <?php if ( ( 'standard' == $format ) || ( 'video' == $format ) || ( 'image' == $format ) || ( 'gallery' == $format ) ) : ?> 35 <h1 class="entry-title"><?php the_title(); ?></h1> 36 <?php endif; ?> 24 if ( ! has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) : 25 the_title( '<h1 class="entry-title">', '</h1>' ); 26 endif; 27 ?> 37 28 38 29 <div class="entry-meta"> 39 <?php if ( 'standard' != $format) : ?>30 <?php if ( has_post_format() ) : ?> 40 31 <span class="post-format"> 41 32 <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> … … 45 36 <?php twentyfourteen_posted_on(); ?> 46 37 47 <?php if ( ! post_password_required() && ( comments_open() || '0' !=get_comments_number() ) ) : ?>38 <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> 48 39 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 49 40 <?php endif; ?> … … 53 44 </header><!-- .entry-header --> 54 45 55 <div class="entry-content clearfix"> 56 <?php the_content(); ?> 46 <div class="entry-content"> 57 47 <?php 48 the_content(); 58 49 wp_link_pages( array( 59 50 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 60 51 'after' => '</div>', 61 52 'link_before' => '<span>', 62 'link_after' => '</span>' 53 'link_after' => '</span>', 63 54 ) ); 64 55 ?> … … 66 57 67 58 <footer class="entry-meta"> 68 <?php if ( ( 'quote' == $format ) || ( 'aside' == $format) ) : ?>59 <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?> 69 60 <div class="entry-meta"> 70 <?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>61 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> 71 62 </div><!-- .entry-meta --> 72 63 <?php endif; ?> 73 64 74 <?php 75 $tag_list = get_the_tag_list(); 76 if ( '' != $tag_list ) : 77 ?> 65 <?php if ( has_tag() ) : ?> 78 66 <span class="tag-links"> 79 <?php echo $tag_list; ?>67 <?php echo get_the_tag_list(); ?> 80 68 </span> 81 <?php endif; // End if $tag_list?>69 <?php endif; ?> 82 70 </footer><!-- .entry-meta --> 83 </article><!-- #post- <?php the_ID(); ?>-->71 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.