Changeset 7877 for trunk/themes/default/template/comment_list.tpl
- Timestamp:
- Nov 25, 2010, 10:26:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/comment_list.tpl
r5682 r7877 3 3 {foreach from=$comments item=comment name=comment_loop} 4 4 <li> 5 <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 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 </a> 11 </div> 12 {/if} 13 <div class="description" style="height:{if isset($comment.IN_EDIT)}200{/if}px"> 14 {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } 15 <ul class="actions" style="float:right"> 16 {if isset($comment.U_DELETE)} 17 <li> 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 </li> 22 {/if} 23 {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} 24 <li> 25 <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> 26 <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> 27 </a> 28 </li> 29 {/if} 30 {if isset($comment.U_VALIDATE)} 31 <li> 32 <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> 33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> 34 </a> 35 </li> 36 {/if} 37 </ul> 38 {/if} 39 <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 40 {if isset($comment.IN_EDIT)} 41 <a name="edit_comment"></a> 42 <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> 43 <fieldset> 44 <legend>{'Edit a comment'|@translate}</legend> 45 <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> 46 <input type="hidden" name="key" value="{$comment.KEY}"> 47 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> 48 <input class="submit" type="submit" value="{'Submit'|@translate}"> 49 </fieldset> 50 </form> 51 {else} 52 <blockquote><div>{$comment.CONTENT}</div></blockquote> 53 {/if} 54 </div> 55 </div> 5 <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 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 </a> 11 </div> 12 {/if} 13 <div class="description"{if isset($comment.IN_EDIT)} style="height:200px"{/if}> 14 {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) } 15 <ul class="actions" style="float:right"> 16 {if isset($comment.U_DELETE)} 17 <li> 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 </li> 22 {/if} 23 {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)} 24 <li> 25 <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}"> 26 <img src="{$ROOT_URL}{$themeconf.icon_dir}/edit.png" class="button" alt="[edit]"> 27 </a> 28 </li> 29 {/if} 30 {if isset($comment.U_VALIDATE)} 31 <li> 32 <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}"> 33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]"> 34 </a> 35 </li> 36 {/if} 37 </ul> 38 {/if} 39 40 <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span> 41 {if isset($comment.IN_EDIT)} 42 <a name="edit_comment"></a> 43 <form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment"> 44 <fieldset> 45 <legend>{'Edit a comment'|@translate}</legend> 46 <label>{'Comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label> 47 <input type="hidden" name="key" value="{$comment.KEY}"> 48 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}"> 49 <input class="submit" type="submit" value="{'Submit'|@translate}"> 50 </fieldset> 51 </form> 52 {else} 53 <blockquote><div>{$comment.CONTENT}</div></blockquote> 54 {/if} 55 </div> 56 </div> 56 57 </li> 57 58 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.