[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)} |
---|
[16522] | 16 | {if isset($comment_derivative_params)} |
---|
| 17 | {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)} |
---|
| 18 | {else} |
---|
| 19 | {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)} |
---|
| 20 | {/if} |
---|
| 21 | {if !$derivative->is_cached()} |
---|
| 22 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
| 23 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
| 24 | {/if} |
---|
[7877] | 25 | <div class="illustration"> |
---|
| 26 | <a href="{$comment.U_PICTURE}"> |
---|
[16505] | 27 | <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}"> |
---|
[7877] | 28 | </a> |
---|
| 29 | </div> |
---|
| 30 | {/if} |
---|
| 31 | <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> |
---|
[12676] | 32 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} |
---|
| 33 | <div class="actions" style="float:right;font-size:90%"> |
---|
[7877] | 34 | {if isset($comment.U_DELETE)} |
---|
[12676] | 35 | <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
| 36 | {'Delete'|@translate} |
---|
[15924] | 37 | </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if} |
---|
| 38 | {/if} |
---|
| 39 | {if isset($comment.U_CANCEL)} |
---|
| 40 | <a href="{$comment.U_CANCEL}"> |
---|
| 41 | {'Cancel'|@translate} |
---|
[12676] | 42 | </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if} |
---|
[7877] | 43 | {/if} |
---|
| 44 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
[12676] | 45 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment"> |
---|
| 46 | {'Edit'|@translate} |
---|
| 47 | </a>{if isset($comment.U_VALIDATE)} | {/if} |
---|
[7877] | 48 | {/if} |
---|
| 49 | {if isset($comment.U_VALIDATE)} |
---|
[12676] | 50 | <a href="{$comment.U_VALIDATE}"> |
---|
| 51 | {'Validate'|@translate} |
---|
[7877] | 52 | </a> |
---|
[12676] | 53 | {/if} |
---|
[8362] | 54 | </div> |
---|
[7877] | 55 | {/if} |
---|
| 56 | |
---|
[18164] | 57 | <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span> |
---|
| 58 | {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} |
---|
[17351] | 59 | - <span class="commentDate">{$comment.DATE}</span> |
---|
[7877] | 60 | {if isset($comment.IN_EDIT)} |
---|
| 61 | <a name="edit_comment"></a> |
---|
[13865] | 62 | <form method="post" action="{$comment.U_EDIT}" id="editComment"> |
---|
| 63 | <p><label>{'Edit a comment'|@translate} :</label></p> |
---|
| 64 | <p><textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></p> |
---|
| 65 | <p><input type="hidden" name="key" value="{$comment.KEY}"> |
---|
| 66 | <input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}"> |
---|
[7877] | 67 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
[12479] | 68 | <input type="submit" value="{'Submit'|@translate}"> |
---|
[13865] | 69 | </p> |
---|
[7877] | 70 | </form> |
---|
| 71 | {else} |
---|
| 72 | <blockquote><div>{$comment.CONTENT}</div></blockquote> |
---|
| 73 | {/if} |
---|
| 74 | </div> |
---|
[3446] | 75 | </li> |
---|
[2480] | 76 | {/foreach} |
---|
[3185] | 77 | </ul> |
---|