- Timestamp:
- Oct 25, 2011, 4:35:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/trunk/theme/template/stuffs_lastcoms.tpl
r9737 r12515 1 {if !empty($block.MAX_WIDTH) or !empty($block.MAX_HEIGHT) or !empty($block.NB_COMMENTS_LINE)} 2 {html_head} 3 <style type="text/css"> 4 {if !empty($block.MAX_WIDTH)} 5 #comments img {ldelim} max-width:{$block.MAX_WIDTH}px; } 6 {/if} 7 {if !empty($block.MAX_HEIGHT)} 8 #comments img {ldelim} max-height:{$block.MAX_HEIGHT}px; } 9 {/if} 10 {if !empty($block.NB_COMMENTS_LINE)} 11 #comments li {ldelim} width:{$block.NB_COMMENTS_LINE} !important; } 12 {/if} 13 </style> 14 {/html_head} 15 {/if} 16 1 17 <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 <div class="actions" style="float:right"> 17 {if !empty($comment.U_DELETE)} 18 <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onClick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');"> 19 <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]" /> 20 </a> 21 {/if} 22 {if !empty($comment.U_VALIDATE)} 23 <a href="{$comment.U_VALIDATE}" title="validate this comment"> 24 <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]" /> 25 </a> 26 {/if} 27 </div> 28 {/if} 29 <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 30 {if !empty($comment.U_EDIT)}- <a href="{$comment.U_EDIT}">{'ce_edit_tool'|@translate}</a>{/if} 31 <blockquote>{$comment.CONTENT}</blockquote> 32 </div> 33 </div> 34 </li> 35 {if isset($comment_separator)} 36 <hr/> 37 {/if} 38 {/foreach} 39 </ul> 18 {assign var=comments value=$block.comments} 19 {include file='comment_list.tpl'} 40 20 </div>
Note: See TracChangeset
for help on using the changeset viewer.