| 48 | | <?php // If comments are closed and there are comments, let's leave a little note. |
| 49 | | elseif ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : |
| 50 | | ?> |
| 51 | | <p class="nocomments"><?php _e( 'Comments are closed.', 'twentytwelve' ); ?></p> |
| 52 | | <?php endif; ?> |
| | 48 | <?php |
| | 49 | /* If there are no comments and comments are closed, let's leave a little note, shall we? |
| | 50 | * But we only want the note on posts and pages that had comments in the first place. |
| | 51 | * It's just the polite thing to do! |
| | 52 | */ |
| | 53 | if ( ! comments_open() && ! empty( $comments_by_type['comment'] ) ) : ?> |
| | 54 | <!-- If comments are closed. --> |
| | 55 | <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> |
| | 56 | <?php endif; ?> |
| | 57 | |
| | 58 | <?php endif; // have_comments() ?> |