source: trunk/themes/default/template/comment_list.tpl @ 13697

Last change on this file since 13697 was 13697, checked in by mistic100, 12 years ago

feature 2588: rename css classes 'thumbnailCategories' and 'thumbnailCategory' on comment_list.tpl

  • Property svn:eol-style set to LF
File size: 2.2 KB
Line 
1{if isset($comment_derivative_params)}
2{strip}{html_style}
3.commentElement DIV.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="commentsList">
13{foreach from=$comments item=comment name=comment_loop}
14<li>
15        <div class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
16        {if isset($comment.src_image)}
17        <div class="illustration">
18                <a href="{$comment.U_PICTURE}">
19                <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}">
20                </a>
21        </div>
22        {/if}
23        <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}>
24                {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT)}
25                <div class="actions" style="float:right;font-size:90%">
26                {if isset($comment.U_DELETE)}
27                        <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
28                                {'Delete'|@translate}
29                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
30                {/if}
31                {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
32                        <a class="editComment" href="{$comment.U_EDIT}#edit_comment">
33                                {'Edit'|@translate}
34                        </a>{if isset($comment.U_VALIDATE)} | {/if}
35                {/if}
36                {if isset($comment.U_VALIDATE)}
37                        <a href="{$comment.U_VALIDATE}">
38                                {'Validate'|@translate}
39                        </a>
40                {/if}&nbsp;
41                </div>
42                {/if}
43
44                <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
45                {if isset($comment.IN_EDIT)}
46                <a name="edit_comment"></a>
47                <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
48                        <fieldset>
49                                <legend>{'Edit a comment'|@translate}</legend>
50                                <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label>
51                                <input type="hidden" name="key" value="{$comment.KEY}">
52                                <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
53                                <input type="submit" value="{'Submit'|@translate}">
54                        </fieldset>
55                </form>
56                {else}
57                <blockquote><div>{$comment.CONTENT}</div></blockquote>
58                {/if}
59        </div>
60        </div>
61</li>
62{/foreach}
63</ul>
Note: See TracBrowser for help on using the repository browser.