source: aowow/templates/wowhead/bricks/allcomments.tpl

Last change on this file was 170, checked in by maron, 16 years ago
File size: 731 bytes
Line 
1{strip}
2var lv_comments = [
3{foreach name=foo from=$comments key=number item=comment}
4 {ldelim}
5 number:{$comment.number},
6 user:'{$comment.user}',
7 body:'{$comment.body|escape:"javascript"}',
8 date:'{$comment.date|date_format:"%Y/%m/%d %H:%M:%S"}',
9 {if $comment.roles!=0}
10 roles: {$comment.roles},
11 {/if}
12 {if $comment.indent!=0}
13 indent: {$comment.indent},
14 {/if}
15 rating: {$comment.rating},
16 replyTo: {$comment.replyto},
17 purged: {$comment.purged},
18 deleted:0,
19 raters:[{foreach name=foo2 key=id from=$comment.raters item=rater}[{$rater.userid},{$rater.rate}]{if $smarty.foreach.foo2.last}{else},{/if}{/foreach}],
20 id:{$comment.id}
21 {rdelim}
22 {if $smarty.foreach.foo.last}{else},{/if}
23{/foreach}
24];
25{/strip}
26
Note: See TracBrowser for help on using the repository browser.