source: trunk/template/yoga/comments.tpl @ 2352

Last change on this file since 2352 was 2352, checked in by patdenice, 16 years ago

Change all #content by .content in css files.
In tpl files, id="content" stay here for backward compatibilities.
Add some plugins triggers in index.tpl and picture.tpl.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1{* $Id: comments.tpl 2352 2008-05-20 00:27:26Z patdenice $ *}
2<div id="content" class="content">
3
4  <div class="titrePage">
5    <ul class="categoryActions">
6      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
7    </ul>
8    <h2>{'User comments'|@translate}</h2>
9  </div>
10
11<form class="filter" action="{$F_ACTION}" method="get">
12
13  <fieldset>
14    <legend>{'Filter'|@translate}</legend>
15
16    <label>{'Keyword'|@translate}<input type="text" name="keyword" value="{$F_KEYWORD}" /></label>
17
18    <label>{'Author'|@translate}<input type="text" name="author" value="{$F_AUTHOR}" /></label>
19
20    <label>
21      {'Category'|@translate}
22      <select name="cat">
23        <option value="0">------------</option>
24        {html_options options=$categories selected=$categories_selected}
25      </select>
26    </label>
27
28    <label>
29      {'Since'|@translate}
30      <select name="since">
31        {html_options options=$since_options selected=$since_options_selected}
32      </select>
33    </label>
34
35  </fieldset>
36
37  <fieldset>
38
39    <legend>{'Display'|@translate}</legend>
40
41    <label>
42      {'Sort by'|@translate}
43      <select name="sort_by">
44        {html_options options=$sort_by_options selected=$sort_by_options_selected}
45      </select>
46    </label>
47
48    <label>
49      {'Sort order'|@translate}
50      <select name="sort_order">
51        {html_options options=$sort_order_options selected=$sort_order_options_selected}
52      </select>
53    </label>
54
55    <label>
56      {'Number of items'|@translate}
57      <select name="items_number">
58        {html_options options=$item_number_options selected=$item_number_options_selected}
59      </select>
60    </label>
61
62  </fieldset>
63
64  <p><input class="submit" type="submit" value="{'Filter and display'|@translate}"></p>
65
66</form>
67
68<div class="navigationBar">{$NAVBAR}</div>
69
70{if isset($comments)}
71<div id="comments">
72
73  {foreach from=$comments item=comment}
74  <div class="comment">
75    <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}" alt="{$comment.ALT}" /></a>
76    <p class="commentHeader"><span class="author">{$comment.AUTHOR}</span> - <span class="date">{$comment.DATE}</span>
77
78    {if isset($comment.U_DELETE)}
79    <a href="{$comment.U_DELETE}" title="{'comments_del'|@translate}">
80      <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{'delete'|@translate}]"/>
81    </a>
82    {/if}
83
84    {if isset($comment.U_VALIDATE)}
85    <a href="{$comment.U_VALIDATE}" title="validate this comment">
86      <img src="{$ROOT_URL}{$themeconf.icon_dir}/validate_s.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[validate]"/>
87    </a>
88    {/if}
89
90    </p>
91    <blockquote>{$comment.CONTENT}</blockquote>
92    <hr class="separation">
93  </div>
94 
95  {/foreach}
96</div>
97{/if}
98
99</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.