root/trunk/Vanilla/templates/vanilla+authentication+comments+userpics/entry.mtml @ 916

Revision 916, 5.5 kB (checked in by bsmith, 16 months ago)

adding vanilla+authentication+comments+userpics and updates to vanilla+authentication+comments

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