root/branches/release-32/default_templates/comment_form.mtml @ 1561

Revision 1561, 4.0 kB (checked in by bchoate, 20 months ago)

Applying comment threading support. BugId:70228

  • Property svn:executable set to *
Line 
1<MTIfCommentsAccepted>
2<div class="comments-open" id="comments-open">
3    <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
4    <div class="comments-open-content">
5    <MTIfRegistrationAllowed>
6            <div id="comment-form-external-auth">
7                <script type="text/javascript">
8                /* <![CDATA[ */
9                <MTIf name="comment_preview_template">is_preview = true;</MTIf>
10                writeCommenterGreeting(commenter_name, <$MTEntryID$>, <$MTEntryBlogID$>, commenter_id, commenter_url);
11                /* ]]> */
12                </script>
13            </div>
14    </MTIfRegistrationAllowed>
15        <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="if (this.bakecookie.checked) rememberMe(this)">
16            <input type="hidden" name="static" value="1" />
17            <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
18            <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
19            <input type="hidden" name="parent_id" value="<MTIf name="comment_preview_template"><$MTCommentParentID$></MTIf>" id="comment-parent-id" />
20            <div id="comments-open-data">
21                <div id="comment-form-name">
22                    <label for="comment-author"><__trans phrase="Name"></label>
23                    <input id="comment-author" name="author" size="30" value="<MTIf name="comment_preview_template"><$MTCommentAuthor encode_html="1"$></MTIf>" />
24                </div>
25                <div id="comment-form-email">
26                    <label for="comment-email"><__trans phrase="Email Address"></label>
27                    <input id="comment-email" name="email" size="30" value="<MTIf name="comment_preview_template"><$MTCommentEmail encode_html="1"$></MTIf>" />
28                </div>
29                <div id="comment-form-url">
30                    <label for="comment-url"><__trans phrase="URL"></label>
31                    <input id="comment-url" name="url" size="30" value="<MTIf name="comment_preview_template"><$MTCommentURL encode_html="1"$></MTIf>" />
32                </div>
33                <div id="comment-form-remember-me">
34                    <label for="comment-bake-cookie"><input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="if (!this.checked) forgetMe(document.comments_form)" value="1" />
35                        <__trans phrase="Remember personal info?"></label>
36                </div>
37                <div id="comment-form-reply">
38                    <label for="comment-reply" id="comment-reply-label"><input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="setCommentParentID();" />
39                        <__trans phrase="Replying to"></label>
40                </div>
41            </div>
42            <div id="comments-open-text">
43                <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
44                <textarea id="comment-text" name="text" rows="15" cols="50"><MTIf name="comment_preview_template"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></MTIf></textarea>
45            </div>
46            <MTIfNonEmpty tag="MTCaptchaFields">
47            <MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted>
48            <div id="comments-open-captcha">
49            </div>
50            </MTIfNonEmpty>
51            <div id="comments-open-footer">
52                <input type="submit" accesskey="v" name="preview" id="comment-preview" value="<__trans phrase="Preview">" />
53                <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
54    <MTIf name="comment_preview_template">
55                <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" />
56    </MTIf>
57            </div>
58        </form>
59    </div>
60</div>
61</MTIfCommentsAccepted>
Note: See TracBrowser for help on using the browser.