[29449] | 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 | {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} |
---|
| 25 | <div class="illustration"> |
---|
| 26 | <a href="{$comment.U_PICTURE}"> |
---|
| 27 | <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}"> |
---|
| 28 | </a> |
---|
| 29 | </div> |
---|
| 30 | {/if} |
---|
| 31 | <div class="description"> |
---|
| 32 | {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } |
---|
| 33 | <div class="actions"> |
---|
| 34 | {if isset($comment.U_DELETE)} |
---|
| 35 | <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> |
---|
| 36 | [{'Delete'|@translate}] |
---|
| 37 | </a> |
---|
| 38 | {/if} |
---|
| 39 | {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} |
---|
| 40 | <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> |
---|
| 41 | [{'edit'|@translate}] |
---|
| 42 | </a> |
---|
| 43 | {/if} |
---|
| 44 | {if isset($comment.U_VALIDATE)} |
---|
| 45 | <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> |
---|
| 46 | [{'validate'|@translate}] |
---|
| 47 | </a> |
---|
| 48 | {/if} |
---|
| 49 | </div> |
---|
| 50 | {/if} |
---|
| 51 | <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> |
---|
| 52 | {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} |
---|
| 53 | - <span class="commentDate">{$comment.DATE}</span> |
---|
| 54 | {if isset($comment.IN_EDIT)} |
---|
| 55 | <a name="edit_comment"></a> |
---|
| 56 | <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> |
---|
| 57 | <fieldset> |
---|
| 58 | <legend>{'Edit a comment'|@translate}</legend> |
---|
| 59 | <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label> |
---|
| 60 | <p><label for="website_url">{'Website'|@translate} :</label></p> |
---|
| 61 | <p><input type="text" name="website_url" id="website_url" value="{$comment.WEBSITE_URL}" size="40"></p> |
---|
| 62 | <input type="hidden" name="key" value="{$comment.KEY}"> |
---|
| 63 | <input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}"> |
---|
| 64 | <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> |
---|
| 65 | <input class="submit" type="submit" value="{'Submit'|@translate}"> |
---|
| 66 | </fieldset> |
---|
| 67 | </form> |
---|
| 68 | {else} |
---|
| 69 | <blockquote><div>{$comment.CONTENT}</div></blockquote> |
---|
| 70 | {/if} |
---|
| 71 | </div> |
---|
| 72 | </li> |
---|
| 73 | {/foreach} |
---|
| 74 | </ul> |
---|
| 75 | <div style="clear: both;"></div> |
---|