root/branches/release-36/default_templates/comment_preview.mtml @ 2062

Revision 2062, 6.5 kB (checked in by bchoate, 19 months ago)

Updates to blog-side javascript regarding user state and permissions. BugId:79077,69644,67754,69814,79258,62643. Fixed declarations for conditional tags. BugId:79476. Display auth'd user nickname rather than name from comment object. BugId:79475

  • 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    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title>
6    <$mt:include module="<__trans phrase="HTML Head">"$>
7    <script type="text/javascript">
8    /* <![CDATA[ */
9    var is_preview = true;
10    /* ]]> */
11    </script>
12    <script type="text/javascript" src="<$MTLink template="javascript"$>"></script>
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>#comment-<$MTCommentID$></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="#comment-<$MTCommentID$>"><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="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                                        <div id="comments-open-data">
68                                            <div id="comment-form-name">
69                                                <label for="comment-author"><__trans phrase="Name"></label>
70                                                <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" />
71                                            </div>
72                                            <div id="comment-form-email">
73                                                <label for="comment-email"><__trans phrase="Email Address"></label>
74                                                <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" />
75                                            </div>
76                                            <div id="comment-form-url">
77                                                <label for="comment-url"><__trans phrase="URL"></label>
78                                                <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" />
79                                            </div>
80                                        </div>
81                                        <div id="comments-open-text">
82                                            <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
83                                            <textarea id="comment-text" name="text" rows="15" cols="50"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea>
84                                        </div>
85                                        <div id="comments-open-captcha"></div>
86                                        <div id="comments-open-footer">
87                                            <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" />
88                                            <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
89                                            <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" />
90                                        </div>
91                                    </form>
92                                </div>
93                            </div>
94                        </div>
95                    </div>
96
97
98                    <$MTInclude module="<__trans phrase="Sidebar">"$>
99
100
101                </div>
102            </div>
103
104
105            <$mt:include module="<__trans phrase="Banner Footer">"$>
106
107
108        </div>
109    </div>
110</body>
111</html>
Note: See TracBrowser for help on using the browser.