Tan-007 /
DesignFly
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * The template for displaying comments |
||||||
| 4 | * |
||||||
| 5 | * This is the template that displays the area of the page that contains both the current comments |
||||||
| 6 | * and the comment form. |
||||||
| 7 | * |
||||||
| 8 | * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
||||||
| 9 | * |
||||||
| 10 | * @package DesignFly |
||||||
| 11 | */ |
||||||
| 12 | |||||||
| 13 | /* |
||||||
| 14 | * If the current post is protected by a password and |
||||||
| 15 | * the visitor has not yet entered the password we will |
||||||
| 16 | * return early without loading the comments. |
||||||
| 17 | */ |
||||||
| 18 | if ( post_password_required() ) { |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 19 | return; |
||||||
| 20 | } |
||||||
| 21 | ?> |
||||||
| 22 | |||||||
| 23 | <div id="comments" class="comments-area"> |
||||||
| 24 | |||||||
| 25 | <?php |
||||||
| 26 | if ( have_comments() ) : |
||||||
|
0 ignored issues
–
show
The function
have_comments was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 27 | ?> |
||||||
| 28 | |||||||
| 29 | <?php the_comments_navigation(); ?> |
||||||
|
0 ignored issues
–
show
The function
the_comments_navigation was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 30 | |||||||
| 31 | <ol class="comment-list"> |
||||||
| 32 | <?php |
||||||
| 33 | wp_list_comments( array( |
||||||
|
0 ignored issues
–
show
The function
wp_list_comments was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 34 | 'type' => 'comment', |
||||||
| 35 | 'callback' => 'designfly_custom_comments' |
||||||
| 36 | ) ); |
||||||
| 37 | ?> |
||||||
| 38 | </ol><!-- .comment-list --> |
||||||
| 39 | |||||||
| 40 | |||||||
| 41 | <hr class="bar"> |
||||||
| 42 | <p class="post-comment"><?php esc_html_e( 'Post your comment', 'designfly' ); ?></p> |
||||||
|
0 ignored issues
–
show
The function
esc_html_e was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 43 | |||||||
| 44 | <?php |
||||||
| 45 | the_comments_navigation(); |
||||||
| 46 | |||||||
| 47 | // If comments are closed and there are comments, let's leave a little note, shall we? |
||||||
| 48 | if ( ! comments_open() ) : |
||||||
|
0 ignored issues
–
show
The function
comments_open was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 49 | ?> |
||||||
| 50 | <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'designfly' ); ?></p> |
||||||
| 51 | <?php |
||||||
| 52 | endif; |
||||||
| 53 | |||||||
| 54 | endif; // Check for have_comments(). |
||||||
| 55 | |||||||
| 56 | comment_form(); |
||||||
|
0 ignored issues
–
show
The function
comment_form was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 57 | ?> |
||||||
| 58 | |||||||
| 59 | </div><!-- #comments --> |
||||||
| 60 |