source: extensions/PWG_Stuffs/template/LastComs.tpl @ 4539

Last change on this file since 4539 was 4539, checked in by patdenice, 14 years ago

[Plugin] [PWG_Stuffs]
Add edit link (if Comment Editor is installed) on LastComs module.

File size: 1.6 KB
Line 
1<div id="comments">
2<ul class="thumbnailCategories">
3{foreach from=$block.comments item=comment}
4<li {if isset($comment.CLASS)}class="{$comment.CLASS}"{/if}>
5        <div class="thumbnailCategory">
6    {if isset($comment.TN_SRC)}
7    <div class="illustration">
8      <a href="{$comment.U_PICTURE}">
9        <img src="{$comment.TN_SRC}" alt="{$comment.ALT}"
10          style="{if !empty($comment.WIDTH)}max-width: {$comment.WIDTH}px; {/if}{if !empty($comment.HEIGHT)}max-height: {$comment.HEIGHT}px; {/if}"/>
11      </a>
12    </div>
13    {/if}
14    <div class="description">
15      {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) }
16      <ul class="actions" style="float:right">
17        {if !empty($comment.U_DELETE)}
18        <li>
19          <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}">
20            <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]" />
21          </a>
22        </li>
23        {/if}
24        {if !empty($comment.U_VALIDATE)}
25        <li>
26          <a href="{$comment.U_VALIDATE}" title="validate this comment">
27            <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]" />
28          </a>
29        </li>
30        {/if}
31      </ul>
32      {/if}
33      <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
34      {if !empty($comment.U_EDIT)}- <a href="{$comment.U_EDIT}">{'ce_edit_tool'|@translate}{/if}
35      <blockquote>{$comment.CONTENT}</blockquote>
36    </div>
37  </div>
38</li>
39{if isset($comment_separator)}
40<hr/>
41{/if}
42{/foreach}
43</ul>
44</div>
Note: See TracBrowser for help on using the repository browser.