source: trunk/template/yoga/comment_list.tpl @ 3446

Last change on this file since 3446 was 3446, checked in by nikrou, 15 years ago

fix html bug (li) fix comment for guest bug (form missing)

  • Property svn:eol-style set to LF
File size: 2.4 KB
RevLine 
[2480]1{* $Id$ *}
[2706]2<ul class="thumbnailCategories">
[2983]3{foreach from=$comments item=comment name=comment_loop}
[2706]4<li>
[3445]5  <div class="thumbnailCategory {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
[2706]6    {if isset($comment.TN_SRC)}
7    <div class="illustration">
8      <a href="{$comment.U_PICTURE}">
[3185]9        <img src="{$comment.TN_SRC}" alt="{$comment.ALT}">
[2706]10      </a>
11    </div>
12    {/if}
[3445]13    <div class="description" style="height:{if ($comment.IN_EDIT==1)}200{/if}px">
14      {if isset($comment.U_DELETE) or isset($comment.U_VALIDATE) or isset($comment.U_EDIT) }
[2706]15      <ul class="actions" style="float:right">
16        {if isset($comment.U_DELETE)}
17        <li>
[3445]18          <a href="{$comment.U_DELETE}" title="{'delete this comment'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">
[3185]19            <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" alt="[delete]">
[2706]20          </a>
21        </li>
22        {/if}
[3445]23        {if isset($comment.U_EDIT) and ($comment.IN_EDIT!=1)}
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}
[2706]30        {if isset($comment.U_VALIDATE)}
31        <li>
32          <a href="{$comment.U_VALIDATE}" title="validate this comment">
[3185]33            <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" alt="[validate]">
[2706]34          </a>
35        </li>
36        {/if}
37      </ul>
38      {/if}
39      <span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
[3445]40      {if ($comment.IN_EDIT==1)}
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}</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}     
[2706]52      <blockquote>{$comment.CONTENT}</blockquote>
[3445]53      {/if}
[2706]54    </div>
55  </div>
[3446]56</li>
[2480]57{/foreach}
[3185]58</ul>
Note: See TracBrowser for help on using the repository browser.