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

Last change on this file since 16506 was 16506, checked in by flop25, 8 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
Line 
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'}
3{if isset($comment_derivative_params)}
4{strip}{html_style}
5.commentElement .illustration{ldelim}
6        width: {$comment_derivative_params->max_width()+5}px
7}
8
9.content .commentElement .description{ldelim}
10        height: {$comment_derivative_params->max_height()+5}px
11}
12{/html_style}{/strip}
13{/if}
14<ul class="commentsList">
15{foreach from=$comments item=comment name=comment_loop}
16<li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
17        {if isset($comment.src_image)}
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}
23        <div class="illustration">
24                <a href="{$comment.U_PICTURE}">
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}">
26                </a>
27        </div>
28        {/if}
29        <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}>
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%">
32                {if isset($comment.U_DELETE)}
33                        <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
34                                {'Delete'|@translate}
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}
40                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
41                {/if}
42                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
43                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment">
44                                {'Edit'|@translate}
45                        </a>{if isset($comment.U_VALIDATE)} | {/if}
46                {/if}
47                {if isset($comment.U_VALIDATE)}
48                        <a href="{$comment.U_VALIDATE}">
49                                {'Validate'|@translate}
50                        </a>
51                {/if}&nbsp;
52                </div>
53                {/if}
54
55                <span class="commentAuthor">{$comment.AUTHOR}</span> - <span class="commentDate">{$comment.DATE}</span>
56                {if isset($comment.IN_EDIT)}
57                <a name="edit_comment"></a>
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}">
63                                <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
64                                <input type="submit" value="{'Submit'|@translate}">
65                        </p>
66                </form>
67                {else}
68                <blockquote><div>{$comment.CONTENT}</div></blockquote>
69                {/if}
70        </div>
71</li>
72{/foreach}
73</ul>
Note: See TracBrowser for help on using the repository browser.