-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcomments.php
More file actions
74 lines (64 loc) · 1.56 KB
/
comments.php
File metadata and controls
74 lines (64 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* The template for displaying comments
*
* This is the template that displays the area of the page that contains both the current comments
* and the comment form.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Suki
*/
// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) exit;
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
<div id="comments" class="comments-area">
<?php
/**
* Hook: suki/frontend/before_comments
*/
do_action( 'suki/frontend/before_comments' );
// You can start editing here -- including this comment!
if ( have_comments() ) :
/**
* Hook: suki/frontend/before_comments_list
*
* @hooked suki_comments_title - 10
* @hooked suki_comments_navigation - 20
*/
do_action( 'suki/frontend/before_comments_list' );
?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 50,
) );
?>
</ol>
<?php
/**
* Hook: suki/frontend/after_comments_list
*
* @hooked suki_comments_navigation - 10
* @hooked suki_comments_closed - 20
*/
do_action( 'suki/frontend/after_comments_list' );
endif; // Check for have_comments().
// Print comment form.
comment_form( apply_filters( 'suki/frontend/comment_form_args', array() ) );
/**
* Hook: suki/frontend/after_comments
*/
do_action( 'suki/frontend/after_comments' );
?>
</div>