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

Last change on this file since 17732 was 17732, checked in by plg, 12 years ago

bug fixed: debug trace removed

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