root/trunk/Sandbox/plugins/Sandbox/templates/sandbox/comments.mtml @ 1127

Revision 1127, 6.7 kB (checked in by bsmith, 14 months ago)

bugzid:82056

Adding class "form-submit" for parity with Sandbox for WP (along side id "form-submit" which is required by MT javascript to show/hide buttons when user is logged in)

  • Property svn:executable set to *
Line 
1<mt:IfFeedbackEnabled>
2        <div id="comments"<mt:IfImageSupport> class="comments-userpic"</mt:IfImageSupport>>
3    <mt:IfCommentsActive>
4        <mt:Comments>
5            <mt:CommentsHeader>
6            <div id="comments-list" class="comments">
7                <h3><$mt:EntryCommentCount singular="<__trans phrase='<span>One</span> Comment'>" plural="<__trans phrase='<span>#</span> Comments'>" none="<__trans phrase='<span>0</span> Comments'>"$></h3>
8                <ol>
9            </mt:CommentsHeader>
10                    <li id="comment-<$mt:CommentID$>" class="<$mt:SandboxCommentClass$>">
11                        <div class="comment-author vcard">
12            <mt:IfCommentParent>
13                        <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="fn n"><$mt:CommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>">
14            <mt:Else>
15                        <span class="fn n"><$mt:CommentAuthorLink$></span>
16            </mt:IfCommentParent>
17                        </div>
18                        <div class="comment-meta"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>">Posted <$mt:CommentDate format="%x"$> at <$mt:CommentDate format="%X"$></abbr> <span class="meta-sep">|</span> <a href="#comment-<$mt:CommentID$>" title="<__trans phrase="Permalink to this comment">"><__trans phrase="Permalink"></a> <mt:IfCommentsAccepted><span class="meta-sep">|</span> <$mt:CommentReplyToLink$></mt:IfCommentsAccepted></div>
19                        <$mt:CommentBody$>
20                    </li>
21            <mt:CommentsFooter>
22                </ol>
23            </div><!-- #comments-list .comments -->
24            </mt:CommentsFooter>
25        </mt:Comments>
26    </mt:IfCommentsActive>
27    <mt:IfPingsActive>
28        <mt:Pings>
29            <mt:PingsHeader>
30            <div id="trackbacks-list" class="comments">
31                <h3><$mt:EntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></h3>
32                <ol>
33            </mt:PingsHeader>
34                    <li id="trackback-<$mt:PingID$>" class="<$mt:SandboxTrackbackClass$>">
35                        <div class="comment-author">By <a href='<$mt:PingURL$>' rel='external nofollow'><$mt:PingBlogName$></a> <abbr class="published" title="<$mt:PingDate format_name="iso8601"$>"> on <$mt:PingDate format="%x"$> at <$mt:PingDate format="%X"$></abbr></div>
36                        <p><strong><$mt:PingTitle$>&#8230;</strong></p>
37                        <p><$mt:PingExcerpt$>&#8230;&#8230;</p>
38                    </li>
39            <mt:PingsFooter>
40                </ol>
41            </div><!-- #trackbacks-list .comments -->
42            </mt:PingsFooter>
43        </mt:Pings>
44    </mt:IfPingsActive>
45    <mt:IfCommentsAccepted>
46            <div id="respond">
47                <h3><__trans phrase="Post a Comment"></h3>
48                <div id="comment-greeting"></div>
49                <div class="formcontainer">
50                    <form id="commentform" action="<$mt:CGIPath$><$mt:CommentScript$>" method="post" name="comments_form" onsubmit="return mtCommentOnSubmit(this)">
51                        <input type="hidden" name="static" value="1" />
52                        <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
53                        <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
54                        <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id" />
55                        <input type="hidden" name="armor" value="1" />
56                        <input type="hidden" name="preview" value="" />
57                        <input type="hidden" name="sid" value="" />
58                        <input type="hidden" name="bakecookie" value="1" />
59
60                        <div id="comment-form-commenter">
61                            <div class="form-label"><label for="author"><__trans phrase="Name"></label> <span class="required">*</span></div>
62                            <div class="form-input"><input id="author" name="author" type="text" value="<mt:If name="comment_preview"><$mt:CommentAuthor encode_html="1"$></mt:If>" size="30" tabindex="3" onfocus="mtCommentFormOnFocus()" /></div>
63
64                            <div class="form-label"><label for="email"><__trans phrase="Email"></label> <span class="required">*</span></div>
65                            <div class="form-input"><input id="email" name="email" type="text" value="<mt:If name="comment_preview"><$mt:CommentEmail encode_html="1"$></mt:If>" size="30" tabindex="4" onfocus="mtCommentFormOnFocus()" /></div>
66
67                            <div class="form-label"><label for="url"><__trans phrase="Website"></label></div>
68                            <div class="form-input"><input id="url" name="url" type="text" value="<mt:If name="comment_preview"><$mt:CommentURL encode_html="1"$></mt:If>" size="30" maxlength="50" tabindex="5" onfocus="mtCommentFormOnFocus()" /></div>
69                        </div>
70                        <div id="comment-form-reply" style="display:none">
71                            <input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="mtSetCommentParentID()" />
72                            <label for="comment-reply" id="comment-reply-label"></label>
73                        </div>
74
75                        <div class="form-label"><label for="comment"><__trans phrase="Comments"> <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label></div>
76                        <div class="form-textarea"><textarea id="comment" name="text" cols="45" rows="8" tabindex="6" onfocus="mtCommentFormOnFocus()"><mt:If name="comment_preview"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></mt:If></textarea></div>
77
78                        <div id="comments-form-captcha"></div>
79
80                        <div id="form-submit" class="form-submit">
81                            <input type="submit" accesskey="s" name="post" id="comment-submit" value="Submit" />
82                            <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="Preview" onclick="this.form.preview.value='1';" />
83                        </div>
84
85                    </form><!-- #commentform -->
86                </div><!-- .formcontainer -->
87
88            </div><!-- #respond -->
89            <script type="text/javascript">
90            <!--
91            mtAttachEvent("load", mtEntryOnLoad);
92            mtAttachEvent("unload", mtEntryOnUnload);
93            //-->
94            </script>
95    </mt:IfCommentsAccepted>
96        </div><!-- #comments -->
97</mt:IfFeedbackEnabled>
Note: See TracBrowser for help on using the browser.