Repository navigation
Expand file tree
/
Copy pathcomments.php
More file actions
81 lines (61 loc) · 1.97 KB
/
Copy pathcomments.php
File metadata and controls
81 lines (61 loc) · 1.97 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
<?php
/**
* The comments template
*
* @package huhu
* @since 0.1
*/
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<div class="comments-title">
<!-- Anzahl Kommentare -->
<?php
$num_comments = get_comments_number();
if ($num_comments==1) {
echo $num_comments . ' Kommentar' ;
}
else
{
echo $num_comments . ' Kommentare' ;
}
?>
</div>
<ol class="comments-list">
<?php
wp_list_comments( array(
'avatar_size' => 40,
'style' => 'li',
'short_ping' => true,
'format' => 'html5',
'callback' => 'huhu_comments',
) );
?>
</ol>
<?php endif; ?>
<?php
$args = array(
'title_reply_before' => '<div>',
'title_reply' => '<div class="comments-reply">Schreibe einen Kommentar</div>',
'title_reply_after' => '</div>',
'comment_field' =>
'<p class="comment-form-comment"><label for="comment">Kommentar</label><textarea id="comment" name="comment" cols="45" rows="8"></textarea></p>',
'author' =>
'<p class="comment-form-author">' .
'<label for="author">Name</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) .
'" size="30"/></p>',
'email' =>
'<p class="comment-form-email"><label for="email">eMail</label> ' .
( $req ? '<span class="required">*</span>' : '' ) .
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) .
'" size="30"/></p>',
'url' =>
'<p class="comment-form-url"><label for="url">Blog</label>' .
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) .
'" size="30" /></p>'
);
comment_form( $args );
?>
</div>