root/trunk/Vanilla/templates/vanilla+comments/entry.mtml @ 922

Revision 922, 5.4 kB (checked in by bsmith, 16 months ago)

bugzid:80880 - Vanilla wrapper include case is incorrect

Line 
1<mt:IncludeBlock module="Wrapper">
2   
3    <mt:setvarblock name="html_head" append="1">
4        <style type="text/css" media="screen">
5            form {
6                width: 50%;
7            }
8        </style>
9    </mt:setvarblock>
10
11    <h1><$mt:EntryTitle$></h1>
12    <p><__trans phrase="By [_1] on [_2]" params="<$mt:EntryAuthorLink$>%%<$mt:EntryDate format="%x %X"$>"></p>
13    <mt:If tag="EntryBody">
14        <$mt:EntryBody$>
15    </mt:If>
16    <mt:If tag="EntryMore" convert_breaks="0">
17        <$mt:EntryMore$>
18    </mt:If>
19
20
21    <mt:IfCommentsActive>
22    <div id="comments">
23
24
25        <mt:Comments>
26            <mt:CommentsHeader>
27        <h2 class="comments-header"><__trans phrase="Comments"></h2>
28        <ol class="comments-content">
29            </mt:CommentsHeader>
30            <li id="comment-<$mt:CommentID$>">
31                <div class="comment-header">
32                    <$mt:CommentAuthorIdentity$>
33                    <mt:IfCommentParent>
34                        <__trans phrase="[_1] replied to [_2]<a href="[_3]">comment from [_4]</a>[_5]" params="<$mt:CommentAuthorLink$>%%<mt:CommentParent>%%<$mt:CommentLink$>%%<$mt:CommentAuthor$>%%</mt:CommentParent>">
35                    <mt:Else>
36                        <$mt:CommentAuthorLink$>
37                    </mt:IfCommentParent>
38                    | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a>
39                    <mt:IfCommentsAccepted>
40                    | <$mt:CommentReplyToLink$>
41                    </mt:IfCommentsAccepted>
42                </div>
43                <div class="comment-body">
44                    <$mt:CommentBody$>
45                </div>
46            </li>
47            <mt:CommentsFooter>
48        </ol>
49            </mt:CommentsFooter>
50        </mt:Comments>
51
52
53        <mt:IfCommentsAccepted>
54        <div id="comments-open">
55            <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
56            <div class="comments-open-content">
57                <div id="comment-greeting"></div>
58                <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
59                    <input type="hidden" name="static" value="1" />
60                    <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
61                    <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
62                    <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id" />
63                    <input type="hidden" name="armor" value="1" />
64                    <input type="hidden" name="preview" value="" />
65                    <input type="hidden" name="sid" value="" />
66                    <div id="comments-open-data">
67                        <div>
68                            <label for="comment-author"><__trans phrase="Name"></label>
69                            <input id="comment-author" name="author" size="30" value="" onfocus="mtCommentFormOnFocus()" />
70                        </div>
71                        <div>
72                            <label for="comment-email"><__trans phrase="Email Address"></label>
73                            <input id="comment-email" name="email" size="30" value="" onfocus="mtCommentFormOnFocus()" />
74                        </div>
75                        <div>
76                            <label for="comment-url"><__trans phrase="URL"></label>
77                            <input id="comment-url" name="url" size="30" value="" onfocus="mtCommentFormOnFocus()" />
78                        </div>
79                        <div>
80                            <input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="mtRememberMeOnClick(this)" value="1" accesskey="r" />
81                            <label for="comment-bake-cookie"><__trans phrase="Remember personal info?"></label>
82                        </div>
83                    </div>
84                    <div id="comment-form-reply" style="display:none">
85                        <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentID$>" onclick="mtSetCommentParentID()" />
86                        <label for="comment-reply" id="comment-reply-label"></label>
87                    </div>
88                    <div id="comments-open-text">
89                        <label for="comment-text"><__trans phrase="Comments">
90                        <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label>
91                        <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtCommentFormOnFocus()"></textarea>
92                    </div>
93                    <div id="comments-open-captcha"></div>
94                    <div id="comments-open-footer">
95                        <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" />
96                        <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
97                    </div>
98                </form>
99            </div>
100        </div>
101        <script type="text/javascript">
102        <!--
103        mtAttachEvent("load", mtEntryOnLoad);
104        mtAttachEvent("unload", mtEntryOnUnload);
105        //-->
106        </script>
107        </mt:IfCommentsAccepted>
108
109
110    </div>
111    </mt:IfCommentsActive>
112
113
114</mt:IncludeBlock>
Note: See TracBrowser for help on using the browser.