1 | {if isset($comment_derivative_params)} |
---|
2 | {strip}{html_style} |
---|
3 | .commentElement .illustration{ldelim} |
---|
4 | width: {$comment_derivative_params->max_width()+5}px |
---|
5 | } |
---|
6 | |
---|
7 | .content .commentElement .description{ldelim} |
---|
8 | height: {$comment_derivative_params->max_height()+5}px |
---|
9 | } |
---|
10 | {/html_style}{/strip} |
---|
11 | {/if} |
---|
12 | <ul class="commentList"> |
---|
13 | {foreach from=$comments item=comment name=comment_loop} |
---|
14 | <li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> |
---|
15 | {if isset($comment.src_image)} |
---|
16 | <div class="illustration"> |
---|
17 | <a href="{$comment.U_PICTURE}"> |
---|
18 | <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}"> |
---|
19 | </a> |
---|
20 | </div> |
---|
21 | {/if} |
---|
22 | <div class="description"> |
---|
23 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } |
---|
24 | <div class="actions"> |
---|
25 | {if isset($comment.U_DELETE)} |
---|
26 | <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
27 | [{'Delete'|@translate}] |
---|
28 | </a> |
---|
29 | {/if} |
---|
30 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
31 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> |
---|
32 | [{'edit'|@translate}] |
---|
33 | </a> |
---|
34 | {/if} |
---|
35 | {if isset($comment.U_VALIDATE)} |
---|
36 | <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> |
---|
37 | [{'validate'|@translate}] |
---|
38 | </a> |
---|
39 | {/if} |
---|
40 | </div> |
---|
41 | {/if} |
---|
42 | <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank" rel="nofollow">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span> |
---|
43 | {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} |
---|
44 | - <span class="commentDate">{$comment.DATE}</span> |
---|
45 | {if isset($comment.IN_EDIT)} |
---|
46 | <a name="edit_comment"></a> |
---|
47 | <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> |
---|
48 | <fieldset> |
---|
49 | <legend>{'Edit a comment'|@translate}</legend> |
---|
50 | <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label> |
---|
51 | <p><label for="website_url">{'Website'|@translate} :</label></p> |
---|
52 | <p><input type="text" name="website_url" id="website_url" value="{$comment.WEBSITE_URL}" size="40"></p> |
---|
53 | <input type="hidden" name="key" value="{$comment.KEY}"> |
---|
54 | <input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}"> |
---|
55 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
56 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
57 | </fieldset> |
---|
58 | </form> |
---|
59 | {else} |
---|
60 | <blockquote><div>{$comment.CONTENT}</div></blockquote> |
---|
61 | {/if} |
---|
62 | </div> |
---|
63 | </li> |
---|
64 | {/foreach} |
---|
65 | </ul> |
---|
66 | <div style="clear: both;"></div> |
---|
67 | {footer_script}{literal} |
---|
68 | jQuery("document").ready(function(jQuery) { |
---|
69 | var rT=jQuery(".replyTo"); |
---|
70 | if (rT.length !=0) { |
---|
71 | var trT=rT.attr("title"); |
---|
72 | var pe=trT.search(" "); |
---|
73 | if (pe>0) trT=trT.substring(0,pe); |
---|
74 | rT.text("["+trT+"]"); |
---|
75 | } |
---|
76 | }); |
---|
77 | {/literal}{/footer_script} |
---|