1 | {config_load file="$conf_file"}
|
---|
2 | {include file='header.tpl'}
|
---|
3 |
|
---|
4 | <div id="main">
|
---|
5 | <div id="main-precontents"></div>
|
---|
6 | <div id="main-contents" class="main-contents">
|
---|
7 | <script type="text/javascript">
|
---|
8 | g_initPath({$page.path})
|
---|
9 | </script>
|
---|
10 | <div class="text">
|
---|
11 | <div class="h1-links"></div>
|
---|
12 | <h1>{#Latest_Comments#}</h1>
|
---|
13 | </div>
|
---|
14 | <div id="lv-comments" class="listview"></div>
|
---|
15 | <script type="text/javascript">
|
---|
16 | {strip}
|
---|
17 | new Listview({ldelim}template: 'commentpreview', id: 'comments', data: [
|
---|
18 | {foreach name=foo from=$comments key=number item=comment}
|
---|
19 | {ldelim}
|
---|
20 | id:{$comment.id},
|
---|
21 | type:{$comment.type},
|
---|
22 | typeId:{$comment.typeID},
|
---|
23 | subject:'{$comment.subject|escape:"javascript"}',
|
---|
24 | preview:'{$comment.preview|escape:"javascript"}',
|
---|
25 | user:'{$comment.user|escape:"javascript"}',
|
---|
26 | rating: {$comment.rating},
|
---|
27 | date:'{$comment.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
---|
28 | elapsed:{$comment.elapsed},
|
---|
29 | purged: {$comment.purged},
|
---|
30 | deleted:0
|
---|
31 | {rdelim}
|
---|
32 | {if $smarty.foreach.foo.last}{else},{/if}
|
---|
33 | {/foreach}
|
---|
34 | ]{rdelim});
|
---|
35 | {/strip}
|
---|
36 | </script>
|
---|
37 | <div class="clear"></div>
|
---|
38 | </div>
|
---|
39 | </div>
|
---|
40 |
|
---|
41 | {include file='footer.tpl'}
|
---|