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

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

display improved on clear themes

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