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

Last change on this file since 13801 was 13801, checked in by rvelices, 12 years ago

removed unused css, merged some css, etc...

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