blob: 174449c7be9b1b5a5af941a9d7bb93f4d87a9794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{if $smarty.request.post_comment_request}
{strip}
<br />
<div class="edit comment">
{if ( $smarty.request.post_comment_request || $post_comment_preview )}
<a name="editcomments"></a>
{/if}
<div class="body">
{formfeedback hash=$formfeedback}
{if $post_comment_preview}
<h2>{tr}Comments Preview{/tr}</h2>
<div class="preview">
{include file='bitpackage:liberty/display_comment.tpl' comment=$postComment}
</div><!-- end .preview -->
{/if}
{form action="`$comments_return_url`#editcomments"}
<input type="hidden" name="comments_maxComments" value="{$maxComments}" />
<input type="hidden" name="comments_style" value="{$comments_style}" />
<input type="hidden" name="comments_sort_mode" value="{$comments_sort_mode}" />
{if $smarty.request.post_comment_request || $smarty.request.post_comment_preview}
<a name="editcomments"></a>
{legend legend="Post"}
<input type="hidden" name="post_comment_reply_id" value="{$post_comment_reply_id}" />
<input type="hidden" name="post_comment_id" value="{$post_comment_id}" />
<div class="row">
{formlabel label="Title" for="comments-title"}
{forminput}
<input type="text" size="50" name="comment_title" id="comments-title" value="{$postComment.title|escape:html}" />
{formhelp note=""}
{/forminput}
</div>
{*assign var=gContent value=$commentpost*}
{*include file="bitpackage:liberty/edit_format.tpl"*}
{assign var=textarea_id value="commentpost"}
{if $gBitSystem->isPackageActive( 'smileys' )}
{include file="bitpackage:smileys/smileys_full.tpl"}
{/if}
{if $gBitSystem->isPackageActive( 'quicktags' )}
{include file="bitpackage:quicktags/quicktags_full.tpl" formId="commentpost"}
{/if}
<div class="row">
{formlabel label="Comment" for="commentpost"}
{forminput}
<textarea {spellchecker} id="commentpost" name="comment_data" rows="6" cols="50">{$postComment.data|escape}</textarea>
{formhelp note="Use [http://www.foo.com] or [http://www.foo.com|description] for links.<br />HTML tags are not allowed inside comments."}
{/forminput}
</div>
<div class="row submit">
<input type="submit" name="post_comment_preview" value="{tr}Preview{/tr}"/>
<input type="submit" name="post_comment_submit" value="{tr}Post{/tr}"/>
<input type="submit" name="post_comment_cancel" value="{tr}Cancel{/tr}"/>
</div>
{/legend}
{/if}
{/form}
{libertypagination hash=$commentsPgnHash}
</div><!-- end .body -->
</div><!-- end .comment -->
{/strip}
{/if}
|