source: extensions/GuestBook/template/guestbook.tpl @ 15940

Last change on this file since 15940 was 15940, checked in by mistic100, 12 years ago

first and basic version

File size: 2.6 KB
Line 
1{combine_css path=$GUESTBOOK_PATH|@cat:"template/style.css"}
2{combine_script id="jquery.raty" path=$GUESTBOOK_PATH|@cat:"template/jquery.raty/jquery.raty.min.js"}
3
4{$MENUBAR}
5
6{footer_script}
7$("#comment_rate").raty({ldelim}
8  path: "{$GUESTBOOK_PATH}template/jquery.raty/",
9  half: true
10});
11$("#expandForm").click(function() {ldelim}
12  $("#guestbookAdd").animate({ldelim}"width": "500px"}, function() {ldelim}
13    $("#addComment").slideDown("slow");
14  });
15});
16{/footer_script}
17
18<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
19
20<div class="titrePage">
21        <ul class="categoryActions">
22    {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
23        </ul>
24
25  <h2>{'GuestBook'|@translate}</h2>
26</div>{* <!-- titrePage --> *}
27
28{if isset($errors) or not empty($infos)}
29{include file='infos_errors.tpl'}
30{/if}
31
32{if isset($comment_add)}
33<div id="guestbookAdd">
34<h4 id="expandForm">{'Sign the guestbook'|@translate}</h4>
35<form method="post" action="{$comment_add.F_ACTION}" id="addComment" style="display:none;">
36  <table>
37  {if $comment_add.SHOW_AUTHOR}
38    <tr>
39    <td>
40      <p><label for="author">{'Author'|@translate}* :</label></p>
41      <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
42    </td>
43    <td>
44      <p><label for="email">{'Email address'|@translate} ({'not publicly visible'|@translate}) :</label></p>
45      <p><input type="text" name="email" id="email" size="30" value="{$comment_add.EMAIL}"></p>
46    </td>
47    </tr>
48  {/if}
49    <tr>
50    <td>
51      <p>{'Rate'|@translate} :</p>
52      <p><span id="comment_rate"></span></p>
53    </td>
54    <td>
55      <p><label for="website">{'Website'|@translate} :</label></p>
56      <p><input type="text" name="website" id="website" size="30" value="{$comment_add.WEBSITE}"></p>
57    </td>
58    </tr>
59  </table>
60 
61  <p><label for="contentid">{'Comment'|@translate}* :</label></p>
62  <p><textarea name="content" id="contentid" rows="5" cols="60">{$comment_add.CONTENT}</textarea></p>
63  <p><input type="hidden" name="key" value="{$comment_add.KEY}">
64    <input type="submit" value="{'Submit'|@translate}"> {'* : mandatory fields'|@translate}</p>
65</form>
66</div>
67{/if}
68
69<p class="comment_count">{'There are %d messages'|@translate|@sprintf:$COMMENT_COUNT}</p>
70
71{if isset($comments)}
72<div id="guestbookCommentList">
73  {if !empty($navbar)}
74    <div id="pictureCommentNavBar">
75      {include file='navigation_bar.tpl'|@get_extent:'navbar'}
76    </div>
77  {/if}
78  {include file=$ABS_GUESTBOOK_PATH|@cat:'template/comment_list.tpl'}
79</div>
80{/if}
81
82
83</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.