-
Notifications
You must be signed in to change notification settings - Fork 0
/
pw_comments.php
50 lines (50 loc) · 1.04 KB
/
pw_comments.php
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
<a name="comments"></a>
<script type="text/javascript" charset="utf-8">
pw.comments['single_post'] = {
query : {
//post_id : 0,
status: 'approve',
orderby : 'date',
},
labels : {
title: "Comments",
title_icon: "pwi-bubbles",
add_comment: "reply",
add_comment_icon: "pwi-bubble",
save: "save",
save_icon: "pwi-disk",
placeholder: "What do you think?",
sort_by: "Sort by :",
},
fields : [
'comment_ID',
'comment_post_ID',
'comment_author',
//'comment_author_email',
'comment_author_url',
'comment_author_IP',
'comment_date',
'comment_date_gmt',
'comment_content',
'comment_karma',
'comment_approved',
'comment_agent',
'comment_type',
'comment_parent',
'user_id',
'time_ago'
],
tree : true,
order_options : {
'comment_points' : 'Points',
'comment_date' : 'Date',
},
min_points : -1,
view: 'default', // Optional, default value is default
};
</script>
<div
streeview
pw-comments="single_post"
post-id="post.ID">
</div>