root/branches/release-34/default_templates/comments.mtml @ 1889

Revision 1889, 5.8 kB (checked in by bsmith, 20 months ago)

bugzid:74303 - Review Design of Threaded Comments

Line 
1<mt:ignore><!-- Display comments for the entry/page or commenting form if entry/page is accepting comments --></mt:ignore>
2<MTIfCommentsActive>
3<div id="comments" class="comments">
4
5
6    <mt:ignore><!-- Display comments --></mt:ignore>
7    <MTComments>
8        <MTCommentsHeader>
9    <h2 class="comments-header"><__trans phrase="[_1] Comments" params="<$MTEntryCommentCount$>"></h2>
10    <div class="comments-content">
11        </MTCommentsHeader>
12        <div class="comment"<MTIfArchiveTypeEnabled archive_type="Individual"> id="comment-<$MTCommentID$>"</MTIfArchiveTypeEnabled>>
13            <div class="inner">
14                <div class="comment-header">
15                    <div class="asset-meta">
16                        <span class="byline">
17                            <mt:IfCommentParent>
18                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty> <span class="vcard author"><$MTCommentAuthorLink default_name="Anonymous" show_email="0"$></span>%%<mt:CommentParent>#comment-<$MTCommentID$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>">
19                            <mt:else>
20                                <MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></MTIfNonEmpty> <span class="vcard author"><$MTCommentAuthorLink default_name="Anonymous" show_email="0"$></span>
21                            </mt:IfCommentParent>
22                            | <a href="#comment-<$MTCommentID$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a>
23                            <MTIfCommentsAccepted> | <$MTCommentReplyLink$></MTIfCommentsAccepted>
24                        </span>
25                    </div>
26                </div>
27                <div class="comment-content">
28                    <$MTCommentBody$>
29                </div>
30            </div>
31        </div>
32        <MTCommentsFooter>
33    </div>
34        </MTCommentsFooter>
35    </MTComments>
36
37
38    <mt:ignore><!-- Display commenting form if entry/page is accepting comments --></mt:ignore>
39    <MTIfCommentsAccepted>
40    <div class="comments-open" id="comments-open">
41        <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
42        <div class="comments-open-content">
43
44
45        <mt:ignore><!-- Display greeting for users if blog allows users to register locally --></mt:ignore>
46        <MTIfRegistrationAllowed>
47            <div id="comment-form-external-auth">
48                <script type="text/javascript">
49                /* <![CDATA[ */
50                writeCommenterGreeting(commenter_name, <$MTEntryID$>, <$MTEntryBlogID$>, commenter_id, commenter_url);
51                /* ]]> */
52                </script>
53            </div>
54        </MTIfRegistrationAllowed>
55
56
57            <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="if (this.bakecookie.checked) rememberMe(this)">
58                <input type="hidden" name="static" value="1" />
59                <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
60                <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
61                <input type="hidden" name="parent_id" value="<MTIf name="comment_preview_template"><$MTCommentParentID$></MTIf>" id="comment-parent-id" />
62                <div id="comments-open-data">
63                    <div id="comment-form-name">
64                        <label for="comment-author"><__trans phrase="Name"></label>
65                        <input id="comment-author" name="author" size="30" value="" />
66                    </div>
67                    <div id="comment-form-email">
68                        <label for="comment-email"><__trans phrase="Email Address"></label>
69                        <input id="comment-email" name="email" size="30" value="" />
70                    </div>
71                    <div id="comment-form-url">
72                        <label for="comment-url"><__trans phrase="URL"></label>
73                        <input id="comment-url" name="url" size="30" value="" />
74                    </div>
75                    <div id="comment-form-remember-me">
76                        <input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="if (!this.checked) forgetMe(document.comments_form)" value="1" />
77                        <label for="comment-bake-cookie"><__trans phrase="Remember personal info?"></label>
78                    </div>
79                    <div id="comment-form-reply">
80                        <input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="setCommentParentID();" />
81                        <label for="comment-reply" id="comment-reply-label"></label>
82                    </div>
83                </div>
84                <div id="comments-open-text">
85                    <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
86                    <textarea id="comment-text" name="text" rows="15" cols="50"></textarea>
87                </div>
88                <MTIfNonEmpty tag="MTCaptchaFields">
89                <MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted>
90                <div id="comments-open-captcha">
91                </div>
92                </MTIfNonEmpty>
93                <div id="comments-open-footer">
94                    <input type="submit" accesskey="v" name="preview" id="comment-preview" value="<__trans phrase="Preview">" />
95                    <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
96                </div>
97            </form>
98
99
100        </div>
101    </div>
102    </MTIfCommentsAccepted>
103
104
105</div>
106</MTIfCommentsActive>
Note: See TracBrowser for help on using the browser.