[12930] | 1 | {if isset($comment_derivative_params)} |
---|
| 2 | {strip}{html_style} |
---|
[13697] | 3 | .commentElement DIV.illustration{ldelim} |
---|
[12930] | 4 | width: {$comment_derivative_params->max_width()+5}px; |
---|
| 5 | } |
---|
| 6 | |
---|
[13697] | 7 | .content .commentElement .description{ldelim} |
---|
[12930] | 8 | height: {$comment_derivative_params->max_height()+5}px; |
---|
| 9 | } |
---|
| 10 | {/html_style}{/strip} |
---|
| 11 | {/if} |
---|
[13697] | 12 | <ul class="commentsList"> |
---|
[2983] | 13 | {foreach from=$comments item=comment name=comment_loop} |
---|
[2706] | 14 | <li> |
---|
[13697] | 15 | <div class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> |
---|
[12930] | 16 | {if isset($comment.src_image)} |
---|
[7877] | 17 | <div class="illustration"> |
---|
| 18 | <a href="{$comment.U_PICTURE}"> |
---|
[12930] | 19 | <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}"> |
---|
[7877] | 20 | </a> |
---|
| 21 | </div> |
---|
| 22 | {/if} |
---|
| 23 | <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> |
---|
[12676] | 24 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} |
---|
| 25 | <div class="actions" style="float:right;font-size:90%"> |
---|
[7877] | 26 | {if isset($comment.U_DELETE)} |
---|
[12676] | 27 | <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
| 28 | {'Delete'|@translate} |
---|
| 29 | </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if} |
---|
[7877] | 30 | {/if} |
---|
| 31 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
[12676] | 32 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment"> |
---|
| 33 | {'Edit'|@translate} |
---|
| 34 | </a>{if isset($comment.U_VALIDATE)} | {/if} |
---|
[7877] | 35 | {/if} |
---|
| 36 | {if isset($comment.U_VALIDATE)} |
---|
[12676] | 37 | <a href="{$comment.U_VALIDATE}"> |
---|
| 38 | {'Validate'|@translate} |
---|
[7877] | 39 | </a> |
---|
[12676] | 40 | {/if} |
---|
[8362] | 41 | </div> |
---|
[7877] | 42 | {/if} |
---|
| 43 | |
---|
| 44 | <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$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>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> |
---|
| 51 | <input type="hidden" name="key" value="{$comment.KEY}"> |
---|
| 52 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
[12479] | 53 | <input type="submit" value="{'Submit'|@translate}"> |
---|
[7877] | 54 | </fieldset> |
---|
| 55 | </form> |
---|
| 56 | {else} |
---|
| 57 | <blockquote><div>{$comment.CONTENT}</div></blockquote> |
---|
| 58 | {/if} |
---|
| 59 | </div> |
---|
| 60 | </div> |
---|
[3446] | 61 | </li> |
---|
[2480] | 62 | {/foreach} |
---|
[3185] | 63 | </ul> |
---|