root/branches/release-38/default_templates/comment_preview.mtml @ 2377

Revision 2377, 7.3 kB (checked in by bchoate, 19 months ago)

Fix for setting user context for comment previews. BugId:79757

  • Property svn:keywords set to Id Revision
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4<head>
5    <script type="text/javascript">
6    /* <![CDATA[ */
7    var user = <$MTUserSessionState$>;
8    var is_preview = true;
9    /* ]]> */
10    </script>
11    <$mt:include module="<__trans phrase="HTML Head">"$>
12    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title>
13</head>
14<body id="<$mt:BlogTemplateSetID$>" class="mt-comment-preview <$MTVar name="page_layout"$>" onload="mtEntryOnLoad()">
15    <div id="container">
16        <div id="container-inner">
17
18
19            <$mt:include module="<__trans phrase="Banner Header">"$>
20
21
22            <div id="content">
23                <div id="content-inner">
24
25
26                    <div id="alpha">
27                        <div id="alpha-inner">
28
29
30                            <h1 id="page-title"><$MTVar name="page_title"$></h1>
31
32
33<mt:ignore><!-- Comment Preview --></mt:ignore>
34                            <div class="comment" id="comment-<$MTCommentID$>">
35                                <div class="inner">
36                                    <div class="comment-header">
37                                        <div class="asset-meta">
38                                            <span class="byline">
39                                                <mt:IfCommentParent>
40                                                    <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$MTCommentAuthorIdentity$> <span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>">
41                                                <mt:else>
42                                                    <$MTCommentAuthorIdentity$>
43                                                    <span class="vcard author"><$MTCommentAuthorLink$></span>
44                                                </mt:IfCommentParent>
45                                                | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a>
46                                            </span>
47                                        </div>
48                                    </div>
49                                    <div class="comment-content">
50                                        <$MTCommentBody$>
51                                    </div>
52                                </div>
53                            </div>
54
55
56<mt:ignore><!-- Comment Form --></mt:ignore>
57                            <div class="comments-open" id="comments-open">
58                                <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
59                                <div class="comments-open-content">
60                                    <div id="comment-greeting"></div>
61                                    <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
62                                        <input type="hidden" name="static" value="1" />
63                                        <input type="hidden" name="armor" value="1" />
64                                        <input type="hidden" name="preview" value="" />
65                                        <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
66                                        <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
67<mt:IfCommentParent>
68                                            <input type="hidden" name="parent_id" value="<$mt:CommentParentId$>" id="comment-parent-id">
69</mt:IfCommentParent>
70                                        <div id="comments-open-data">
71                                            <div id="comment-form-name">
72                                                <label for="comment-author"><__trans phrase="Name"></label>
73                                                <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" />
74                                            </div>
75                                            <div id="comment-form-email">
76                                                <label for="comment-email"><__trans phrase="Email Address"></label>
77                                                <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" />
78                                            </div>
79                                            <div id="comment-form-url">
80                                                <label for="comment-url"><__trans phrase="URL"></label>
81                                                <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" />
82                                            </div>
83                                        </div>
84<mt:IfCommentParent>
85                                        <div id="comment-form-reply">
86                                            <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentId$>" checked="checked" onclick="mtSetCommentParentID()" />
87                                            <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"></label>
88                                        </div>
89</mt:IfCommentParent>
90                                        <div id="comments-open-text">
91                                            <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
92                                            <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea>
93                                        </div>
94                                        <div id="comments-open-captcha"></div>
95                                        <div id="comments-open-footer">
96                                            <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" />
97                                            <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
98                                            <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" />
99                                        </div>
100                                    </form>
101                                </div>
102                            </div>
103                        </div>
104                    </div>
105
106
107                    <$MTInclude module="<__trans phrase="Sidebar">"$>
108
109
110                </div>
111            </div>
112
113
114            <$mt:include module="<__trans phrase="Banner Footer">"$>
115
116
117        </div>
118    </div>
119</body>
120</html>
Note: See TracBrowser for help on using the browser.