Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
<?php $count = 0; ?>
2
{LOOP MESSAGES}
3
{IF MESSAGES->parent_id 0}
4
<div class="entry">
5
<h1>{MESSAGES->subject}</h1>
6
<p>{MESSAGES->body}</p>
7
<small>Post by {MESSAGES->linked_author} on {MESSAGES->datestamp}</small>
8
<small>{IF MODERATOR true}<a href="{MESSAGES->edit_url}">edit</a>&nbsp;|&nbsp;<a href="{MESSAGES->delete_url2}">delete</a>{/IF}</small>
9
</div>
10
<div id="comments">
11
<h2>Comments</h2>
12
{ELSE}
13
<a name="msg-{MESSAGES->message_id}"></a>
14
<?php
15
    $class = ($count%2==0) ? "comment-alt" : "";
16
    $count++;
17
?>
18
<div class="comment <?php echo $class;?>">
19
<h1>{MESSAGES->subject}</h1>
20
<p>{MESSAGES->body}</p>
21
<small>Post by {MESSAGES->linked_author} on {MESSAGES->datestamp}</small>
22
{IF MODERATOR true}<small><a href="{MESSAGES->edit_url}">edit</a>&nbsp;|&nbsp;<a href="{MESSAGES->delete_url1}">delete</a></small>{/IF}
23
</div>
24
 
25
{/IF}
26
 
27
{/LOOP MESSAGES}
28
</div>
29
 
30
<h3>Post A Comment</h3>