[7989] | 1 | <ul class="commentList"> |
---|
| 2 | {foreach from=$comments item=comment name=comment_loop} |
---|
| 3 | <li class="comment"> |
---|
| 4 | {if isset($comment.TN_SRC)} |
---|
| 5 | <div class="illustration"> |
---|
| 6 | <a href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a> |
---|
| 7 | </div> |
---|
| 8 | {/if} |
---|
| 9 | <div class="description"> |
---|
| 10 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } |
---|
| 11 | <ul class="actions"> |
---|
| 12 | {if isset($comment.U_DELETE)} |
---|
| 13 | <li> |
---|
| 14 | <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
| 15 | [delete] |
---|
| 16 | </a> |
---|
| 17 | </li> |
---|
| 18 | {/if} |
---|
| 19 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
| 20 | <li> |
---|
| 21 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> |
---|
| 22 | [edit] |
---|
| 23 | </a> |
---|
| 24 | </li> |
---|
| 25 | {/if} |
---|
| 26 | {if isset($comment.U_VALIDATE)} |
---|
| 27 | <li> |
---|
| 28 | <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> |
---|
| 29 | [validate] |
---|
| 30 | </a> |
---|
| 31 | </li> |
---|
| 32 | {/if} |
---|
| 33 | </ul> |
---|
| 34 | {/if} |
---|
| 35 | <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> |
---|
| 36 | {if isset($comment.IN_EDIT)} |
---|
| 37 | <a name="edit_comment"></a> |
---|
| 38 | <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> |
---|
| 39 | <fieldset> |
---|
| 40 | <legend>{'Edit a comment'|@translate}</legend> |
---|
| 41 | <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label> |
---|
| 42 | <input type="hidden" name="key" value="{$comment.KEY}"> |
---|
| 43 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
| 44 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
| 45 | </fieldset> |
---|
| 46 | </form> |
---|
| 47 | {else} |
---|
| 48 | <blockquote><div>{$comment.CONTENT}</div></blockquote> |
---|
| 49 | {/if} |
---|
| 50 | </div> |
---|
| 51 | </li> |
---|
| 52 | {/foreach} |
---|
| 53 | </ul> |
---|
| 54 | <div style="clear: both;"></div> |
---|