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

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

better integration in simple and stripped

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