{if isset($comment_derivative_params)} {strip}{html_style} .commentElement .illustration{ width:{$comment_derivative_params->max_width()+5}px } .content .commentElement .description{ min-height:{$comment_derivative_params->max_height()+5}px } {/html_style}{/strip} {footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png";{/footer_script} {/if}
{foreach from=$comments item=comment name=comment_loop}
{if isset($comment.src_image)} {if isset($comment_derivative_params)} {define_derivative name='cropped_derivative_params' width=$comment_derivative_params->sizing->ideal_size[0] height=$comment_derivative_params->sizing->ideal_size[0] crop=true} {else} {define_derivative name='cropped_derivative_params' width=$derivative_params->sizing->ideal_size[0] height=$derivative_params->sizing->ideal_size[0] crop=true} {/if} {assign var=derivative value=$pwg->derivative($cropped_derivative_params, $comment.src_image)} {if !$derivative->is_cached()} {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} {/if} 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}"> {else} {include file="http_scheme.tpl"} {/if}
{if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
{if isset($comment.U_DELETE)} {'Delete'|@translate} {if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if} {/if} {if isset($comment.U_CANCEL)} {'Cancel'|@translate} {if isset($comment.U_VALIDATE)} | {/if} {/if} {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} {'Edit'|@translate} {if isset($comment.U_VALIDATE)} | {/if} {/if} {if isset($comment.U_VALIDATE)} {'Validate'|@translate} {/if} 
{/if} {if $comment.WEBSITE_URL}{$comment.AUTHOR}{else}{$comment.AUTHOR}{/if} {if isset($comment.EMAIL)}- {$comment.EMAIL}{/if} - {$comment.DATE} {if isset($comment.IN_EDIT)}
{else}
{$comment.CONTENT}
{/if}
{/foreach}