Make WordPress Core


Ignore:
Timestamp:
10/11/2012 10:26:06 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: add missing reply link to post format templates, props obenland. Fixes #22169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/content-image.php

    r21723 r22203  
    1818                <h1><?php the_title(); ?></h1>
    1919                <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo get_the_date(); ?></time></h2>
    20                 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    2120            </a>
     21            <?php if ( comments_open() ) : ?>
     22            <div class="comments-link">
     23                <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
     24            </div><!-- .comments-link -->
     25            <?php endif; // comments_open() ?>
     26            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    2227        </footer><!-- .entry-meta -->
    2328    </article><!-- #post -->
Note: See TracChangeset for help on using the changeset viewer.