Ignore:
Timestamp:
Nov 26, 2011, 3:18:42 PM (12 years ago)
Author:
Zaphod
Message:

version 2.0.3

Location:
extensions/stripped/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/comment_list.tpl

    r7989 r12659  
     1{* $Id$ *}
    12<ul class="commentList">
    2   {foreach from=$comments item=comment name=comment_loop}
    3   <li class="comment">
    4     {if isset($comment.TN_SRC)}
    5     <div class="illustration">
    6       <a href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a>
    7     </div>
    8     {/if}
    9     <div class="description">
    10       {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
    11       <ul class="actions">
    12         {if isset($comment.U_DELETE)}
    13         <li>
    14                 <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
    15                         [delete]
    16                 </a>
    17         </li>
    18         {/if}
    19     {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
    20     <li>
    21       <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}">
    22         [edit]
    23       </a>
    24     </li>
    25     {/if}
    26         {if isset($comment.U_VALIDATE)}
    27         <li>
    28                 <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}">
    29                         [validate]
    30                 </a>
    31         </li>
    32         {/if}
    33       </ul>
    34       {/if}
    35       <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
    36       {if isset($comment.IN_EDIT)}
    37       <a name="edit_comment"></a>
    38       <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
    39           <fieldset>
    40                 <legend>{'Edit a comment'|@translate}</legend>
    41                 <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label>
    42                 <input type="hidden" name="key" value="{$comment.KEY}">
    43                 <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
    44                 <input class="submit" type="submit" value="{'Submit'|@translate}">
    45           </fieldset>
    46       </form>
    47       {else}
    48       <blockquote><div>{$comment.CONTENT}</div></blockquote>
    49       {/if}
    50     </div>
    51   </li>
    52   {/foreach}
     3        {foreach from=$comments item=comment name=comment_loop}
     4                <li class="comment">
     5                        {if isset($comment.TN_SRC)}
     6                                <div class="illustration">
     7                                        <a href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a>
     8                                </div>
     9                        {/if}
     10                        <div class="description">
     11                        {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
     12                                <div class="actions">
     13                                        {if isset($comment.U_DELETE)}
     14                                                <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
     15                                                        [{'Delete'|@translate}]
     16                                                </a>
     17                                        {/if}
     18                                        {if isset($comment.U_EDIT) and !isset($comment.IN_EDIT)}
     19                                                <a class="editComment" href="{$comment.U_EDIT}#edit_comment" title="{'edit this comment'|@translate}">
     20                                                        [{'edit'|@translate}]
     21                                                </a>
     22                                        {/if}
     23                                        {if isset($comment.U_VALIDATE)}
     24                                                <a href="{$comment.U_VALIDATE}" title="{'validate this comment'|@translate}">
     25                                                        [{'validate'|@translate}]
     26                                                </a>
     27                                        {/if}
     28                                </div>
     29                        {/if}
     30                        <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
     31                                {if isset($comment.IN_EDIT)}
     32                                        <a name="edit_comment"></a>
     33                                        <form  method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
     34                                                <fieldset>
     35                                                        <legend>{'Edit a comment'|@translate}</legend>
     36                                                        <label><textarea name="content" id="contenteditid" rows="4" cols="80">{$comment.CONTENT|@escape}</textarea></label>
     37                                                        <input type="hidden" name="key" value="{$comment.KEY}">
     38                                                        <input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
     39                                                        <input class="submit" type="submit" value="{'Submit'|@translate}">
     40                                                </fieldset>
     41                                        </form>
     42                                {else}
     43                                        <blockquote><div>{$comment.CONTENT}</div></blockquote>
     44                                {/if}
     45                        </div>
     46                </li>
     47        {/foreach}
    5348</ul>
    5449<div style="clear: both;"></div>
     50{footer_script}{literal}
     51        jQuery("document").ready(function(jQuery) {
     52                var rT=jQuery(".replyTo");
     53                if (rT.length !=0) {
     54                        var trT=rT.attr("title");
     55                        var pe=trT.search(" ");
     56                        if (pe>0) trT=trT.substring(0,pe);
     57                        rT.text("["+trT+"]");
     58                }
     59        });
     60{/literal}{/footer_script}
  • extensions/stripped/template/comments.tpl

    r9960 r12659  
    33        $this->assign('LEVEL_SEPARATOR', $conf[ 'level_separator' ]);
    44{/php}
     5
    56<div class="titrePage">
    67        <div class="browsePath">
Note: See TracChangeset for help on using the changeset viewer.