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