Make WordPress Core


Ignore:
Timestamp:
08/14/2013 04:38:01 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-post-format.php

    r24989 r25021  
    4444                                if ( 'post' == get_post_type() )
    4545                                        twentyfourteen_posted_on();
     46
     47                                if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) :
    4648                        ?>
    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>
    5050                        <?php endif; ?>
    5151
    … …  
    5454        </header><!-- .entry-header -->
    5555
    56         <div class="entry-content clearfix">
    57                 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) ); ?>
     56        <div class="entry-content">
    5857                <?php
     58                        the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
    5959                        wp_link_pages( array(
    6060                                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    6161                                'after'       => '</div>',
    6262                                'link_before' => '<span>',
    63                                 'link_after'  => '</span>'
     63                                'link_after'  => '</span>',
    6464                        ) );
    6565                ?>
    … …  
    6767
    6868        <footer class="entry-meta">
    69                 <?php if ( ( 'quote' == $format ) || ( 'aside' == $format ) ) : ?>
     69                <?php if ( has_post_format( array( 'quote', 'aside' ) ) ) : ?>
    7070                <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>' ); ?>
    7272                </div>
    7373                <?php endif; ?>
    7474
    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; ?>
    8178        </footer><!-- .entry-meta -->
    82 
    83 </article><!-- #post-<?php the_ID(); ?> -->
     79</article><!-- #post-## -->
Note: See TracChangeset for help on using the changeset viewer.