Repository navigation
Expand file tree
/
Copy pathcomments.php
More file actions
91 lines (74 loc) · 2.71 KB
/
Copy pathcomments.php
File metadata and controls
91 lines (74 loc) · 2.71 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
if ( post_password_required() ) {
return;
}
?>
<div id="comments" class="clearfix">
<?php
if ( have_comments() ) {
?>
<h3 id="comments-title"><span><?php comments_number(); ?></span></h3>
<!-- Comments List
============================================= -->
<ol class="commentlist clearfix">
<?php
foreach ( $comments as $comment ) {
?>
<li class="comment even thread-even depth-1" id="li-comment-1">
<div id="comment-1" class="comment-wrap clearfix">
<div class="comment-meta">
<div class="comment-author vcard">
<span class="comment-avatar clearfix">
<?php echo get_avatar( $comment, 60, '', '', array( 'class' => 'avatar avatar-60 photo avatar-default' ) ); ?>
</span>
</div>
</div>
<div class="comment-content clearfix">
<div class="comment-author">
<?php comment_author(); ?>
<span><?php comment_date(); ?></span>
</div>
<?php comment_text(); ?>
</div>
<div class="clear"></div>
</div>
</li>
<?php
}
the_comments_pagination();
}
?>
</ol><!-- .commentlist end -->
<div class="clear"></div>
<!-- Comment Form
============================================= -->
<div id="respond" class="clearfix">
<?php
comment_form( array(
'comment_field' => '<div class="clear"></div>
<div class="col_full">
<label>Comment</label>
<textarea name="comment" cols="58" rows="7"
class="sm-form-control"></textarea>
</div>',
'fields' => array(
'author' => '<div class="col_one_third">
<label>' . __( 'Name', 'mytheme' ) . '</label>
<input type="text" name="author" class="sm-form-control"/>
</div>',
'email' => '<div class="col_one_third">
<label>' . __( 'Email', 'mytheme' ) . '</label>
<input type="text" name="email" class="sm-form-control"/>
</div>',
'url' => '<div class="col_one_third col_last">
<label>' . __( 'Website', 'mytheme' ) . '</label>
<input type="text" name="url" class="sm-form-control"/>
</div>',
),
'class_submit' => 'button button-3d nomargin',
'label_submit' => __( 'Submit Comment', 'mytheme' ),
'title_reply' => __( 'Leave a<span> Comment</span>', 'mytheme' )
) );
?>
</div><!-- #respond end -->
</div><!-- #comments end -->