source: branches/2.4/themes/default/template/comment_list.tpl @ 16506

Last change on this file since 16506 was 16506, checked in by flop25, 12 years ago

merge r16504 & r16505 from trunk to branch 2.4
bug:2684
adding the loader ajax-loader-small.gif for comment_list.tpl, and ajax-loader-big.gif for picture_content.tpl
bug:2684

  • Property svn:eol-style set to LF
File size: 3.0 KB
RevLine 
[16506]1{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
2{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
[12930]3{if isset($comment_derivative_params)}
4{strip}{html_style}
[13801]5.commentElement .illustration{ldelim}
6        width: {$comment_derivative_params->max_width()+5}px
[12930]7}
8
[13697]9.content .commentElement .description{ldelim}
[13801]10        height: {$comment_derivative_params->max_height()+5}px
[12930]11}
12{/html_style}{/strip}
13{/if}
[13697]14<ul class="commentsList">
[2983]15{foreach from=$comments item=comment name=comment_loop}
[13801]16<li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
[12930]17        {if isset($comment.src_image)}
[16506]18    {if isset($comment_derivative_params)}
19    {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)}
20    {else}
21    {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)}
22    {/if}
[7877]23        <div class="illustration">
24                <a href="{$comment.U_PICTURE}">
[16506]25                <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]26                </a>
27        </div>
28        {/if}
29        <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}>
[12676]30                {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
31                <div class="actions" style="float:right;font-size:90%">
[7877]32                {if isset($comment.U_DELETE)}
[12676]33                        <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
34                                {'Delete'|@translate}
[15924]35                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if}
36                {/if}
37                {if isset($comment.U_CANCEL)}
38                        <a href="{$comment.U_CANCEL}">
39                                {'Cancel'|@translate}
[12676]40                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
[7877]41                {/if}
42                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
[12676]43                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment">
44                                {'Edit'|@translate}
45                        </a>{if isset($comment.U_VALIDATE)} | {/if}
[7877]46                {/if}
47                {if isset($comment.U_VALIDATE)}
[12676]48                        <a href="{$comment.U_VALIDATE}">
49                                {'Validate'|@translate}
[7877]50                        </a>
[12676]51                {/if}&nbsp;
[8362]52                </div>
[7877]53                {/if}
54
[13801]55                <span class="commentAuthor">{$comment.AUTHOR}</span> - <span class="commentDate">{$comment.DATE}</span>
[7877]56                {if isset($comment.IN_EDIT)}
57                <a name="edit_comment"></a>
[13865]58                <form method="post" action="{$comment.U_EDIT}" id="editComment">
59                        <p><label>{'Edit a comment'|@translate} :</label></p>
60                        <p><textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></p>
61                        <p><input type="hidden" name="key" value="{$comment.KEY}">
62                                <input type="hidden" name="pwg_token" value="{$comment.PWG_TOKEN}">
[7877]63                                <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
[12479]64                                <input type="submit" value="{'Submit'|@translate}">
[13865]65                        </p>
[7877]66                </form>
67                {else}
68                <blockquote><div>{$comment.CONTENT}</div></blockquote>
69                {/if}
70        </div>
[3446]71</li>
[2480]72{/foreach}
[3185]73</ul>
Note: See TracBrowser for help on using the repository browser.