- 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-post-format.php
r24989 r25021 44 44 if ( 'post' == get_post_type() ) 45 45 twentyfourteen_posted_on(); 46 47 if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : 46 48 ?> 47 48 <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> 49 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 49 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span> 50 50 <?php endif; ?> 51 51 … … 54 54 </header><!-- .entry-header --> 55 55 56 <div class="entry-content clearfix"> 57 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); ?> 56 <div class="entry-content"> 58 57 <?php 58 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 59 59 wp_link_pages( array( 60 60 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', 61 61 'after' => '</div>', 62 62 'link_before' => '<span>', 63 'link_after' => '</span>' 63 'link_after' => '</span>', 64 64 ) ); 65 65 ?> … … 67 67 68 68 <footer class="entry-meta"> 69 <?php if ( ( 'quote' == $format ) || ( 'aside' == $format) ) : ?>69 <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?> 70 70 <div class="entry-meta"> 71 <?php the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); ?>71 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> 72 72 </div> 73 73 <?php endif; ?> 74 74 75 <?php 76 $tag_list = get_the_tag_list(); 77 if ( '' != $tag_list && 'post' == get_post_type() ) : 78 ?> 79 <span class="tag-links"><?php echo $tag_list; ?></span> 80 <?php endif; // End if $tag_list ?> 75 <?php if ( has_tag() ) : ?> 76 <span class="tag-links"><?php echo get_the_tag_list(); ?></span> 77 <?php endif; ?> 81 78 </footer><!-- .entry-meta --> 82 83 </article><!-- #post-<?php the_ID(); ?> --> 79 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.