source: extensions/stripped_black_bloc/template/comment_list.tpl @ 14166

Last change on this file since 14166 was 14166, checked in by flop25, 12 years ago

stuffs_thumbnails.tpl compatible piwigo 2.4
comment_list.tpl picture.tpl picture_content.tpl added from stripped and updated for 2.4 : xlarge used on picture.tpl, comment_list.tpl has been updated to work with pwgstuff too

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