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