source: extensions/stripped/template/comment_list.tpl @ 16833

Last change on this file since 16833 was 16833, checked in by Zaphod, 12 years ago

version 2.2.4

File size: 2.3 KB
Line 
1{* $Id$ *}
2<ul class="commentList">
3        {foreach from=$comments item=comment name=comment_loop}
4                <li class="comment">
5                        {if isset($comment.src_image)}
6                                <div class="illustration">
7                                        <a href="{$comment.U_PICTURE}">
8                                                <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}">
9                                        </a>
10                                </div>
11                        {/if}
12                        <div class="description">
13                                {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
14                                        <div class="actions">
15                                                {if isset($comment.U_DELETE)}
16                                                        <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
17                                                                [{'Delete'|@translate}]
18                                                        </a>
19                                                {/if}
20                                                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
21                                                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}">
22                                                                [{'edit'|@translate}]
23                                                        </a>
24                                                {/if}
25                                                {if isset($comment.U_VALIDATE)}
26                                                        <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}">
27                                                                [{'validate'|@translate}]
28                                                        </a>
29                                                {/if}
30                                        </div>
31                                {/if}
32                                <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
33                                {if isset($comment.IN_EDIT)}
34                                        <a name="edit_comment"></a>
35                                        <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
36                                                <fieldset>
37                                                        <legend>{'Edit a comment'|@translate}</legend>
38                                                        <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label>
39                                                        <input type="hidden" name="key" value="{$comment.KEY}">
40                                                        <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
41                                                        <input class="submit" type="submit" value="{'Submit'|@translate}">
42                                                </fieldset>
43                                        </form>
44                                {else}
45                                        <blockquote><div>{$comment.CONTENT}</div></blockquote>
46                                {/if}
47                        </div>
48                </li>
49        {/foreach}
50</ul>
51<div style="clear: both;"></div>
52{footer_script}{literal}
53        jQuery("document").ready(function(jQuery) {
54                var rT=jQuery(".replyTo");
55                if (rT.length !=0) {
56                        var trT=rT.attr("title");
57                        var pe=trT.search(" ");
58                        if (pe>0) trT=trT.substring(0,pe);
59                        rT.text("["+trT+"]");
60                }
61        });
62{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.