root/branches/release-32/default_templates/comments.mtml @ 1707

Revision 1707, 5.6 kB (checked in by bsmith, 20 months ago)

bugzid:69535 - less modularized template set committed. produces same html as modularized template set

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