Make WordPress Themes

source: multisport/1.5.9/comments.php

Last change on this file was 139039, checked in by themedropbox, 5 years ago

New version of MultiSport - 1.3.9

File size: 1.7 KB
Line 
1<?php
2/**
3 * The template for displaying comments
4 *
5 * The area of the page that contains both current comments
6 * and the comment form.
7 *
8 */
9 
10if ( post_password_required() ) {
11        return;
12}
13?>
14
15        <?php if ( have_comments() ) : ?>
16                <h3 id="comments">
17                        <?php
18                                $comments_number = get_comments_number();
19                                if ( '1' === $comments_number ) {
20                                        /* translators: %s: post title */
21                                        printf( _x( 'One Reply to &ldquo;%s&rdquo;', 'comments title', 'multisport' ), get_the_title() );
22                                } else {
23                                        printf(
24                                                /* translators: 1: number of comments, 2: post title */
25                                                _nx(
26                                                        '%1$s Reply to &ldquo;%2$s&rdquo;',
27                                                        '%1$s Replies to &ldquo;%2$s&rdquo;',
28                                                        $comments_number,
29                                                        'comments title',
30                                                        'multisport'
31                                                ),
32                                                esc_html( number_format_i18n( $comments_number ) ),
33                                                get_the_title()
34                                        );
35                                }
36                        ?>
37                </h3><!-- #comments -->
38
39                <ol class="commentlist">
40                        <?php
41                                wp_list_comments( array(
42                                        'style'       => 'ol',
43                                        'short_ping'  => true,
44                                        'avatar_size' => 56,
45                                ) );
46                        ?>
47                </ol><!-- .commentlist -->
48
49                <div class="comment-navigation">
50                   
51                        <div class="alignleft"><?php previous_comments_link(); ?>
52                        </div><!-- .alignleft -->
53       
54                        <div class="alignright"><?php next_comments_link(); ?>
55                        </div><!-- .alignright -->
56                       
57                </div><!-- .comment-navigation -->
58
59        <?php endif; // have_comments() ?>
60
61        <?php
62                // If comments are closed and there are comments, let's leave a little note, shall we?
63                if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
64        ?>
65                <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'multisport' ); ?></p>
66        <?php endif; ?>
67
68        <?php comment_form(); ?>
Note: See TracBrowser for help on using the repository browser.