root/trunk/default_templates/comments.mtml

Revision 4196, 5.7 kB (checked in by takayama, 3 months ago)

* Set svn keywords

  • Property svn:keywords set to Author Date Id Revision
Line 
1<mt:Ignore>
2<!-- Display comments for the entry/page or commenting form if entry/page is accepting comments -->
3</mt:Ignore>
4<mt:IfCommentsActive>
5
6<div id="comments" class="comments">
7
8
9    <mt:Ignore>
10    <!-- Display comments -->
11    </mt:Ignore>
12    <mt:Comments lastn="$comments_per_page" sort_order="ascend">
13        <mt:CommentsHeader>
14    <h2 class="comments-header"><$mt:EntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></h2>
15    <mt:If tag="EntryCommentCount" gt="$comments_per_page">
16    <ul id="top-comment-nav">
17      <li id="top-prev-comments">
18        <a href="javascript://" id="top-prev-comments-link" title="<__trans phrase="Older Comments">">&lt;&lt;&nbsp;<__trans phrase="Older Comments"></a>
19      </li>
20      <li id="top-num-comments"><span id="top-current-comments"></span></li>
21      <li id="top-next-comments">
22        <a href="javascript://" id="top-next-comments-link" title="<__trans phrase="Newer Comments">"><__trans phrase="Newer Comments">&nbsp;&gt;&gt;</a>
23      </li>
24    </ul>
25    </mt:If>
26    <div id="comments-content" class="comments-content" style="clear: left;">
27        </mt:CommentsHeader>
28        <$mt:Include module="<__trans phrase="Comment Detail">"$>
29        <mt:CommentsFooter>
30    </div>
31        </mt:CommentsFooter>
32    </mt:Comments>
33    <mt:If tag="EntryCommentCount" gt="$comments_per_page">
34        <mt:Ignore><__trans phrase="The data is modified by the paginate script"></mt:Ignore>
35        <ul id="comment-nav">
36        <li id="prev-comments">
37          <a href="javascript://" id="prev-comments-link" title="<__trans phrase="Older Comments">">&lt;&lt;&nbsp;<__trans phrase="Older Comments"></a>
38        </li>
39        <li id="num-comments"><span id="current-comments"></span></li>
40        <li id="next-comments">
41          <a href="javascript://" id="next-comments-link" title="<__trans phrase="Newer Comments">"><__trans phrase="Newer Comments">&nbsp;&gt;&gt;</a>
42        </li>
43      </ul>
44    </mt:If>
45
46    <mt:Ignore>
47    <!-- Display commenting form if entry/page is accepting comments -->
48    </mt:Ignore>
49    <mt:IfCommentsAccepted>
50    <div class="comments-open" id="comments-open">
51        <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
52        <div class="comments-open-content">
53
54        <mt:Ignore>
55        <!-- Display greeting for users if blog allows users to register locally -->
56        </mt:Ignore>
57            <div id="comment-greeting"></div>
58
59            <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
60                <input type="hidden" name="static" value="1" />
61                <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
62                <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
63                <input type="hidden" name="parent_id" value="<$mt:CommentParentID escape="html"$>" id="comment-parent-id" />
64                <input type="hidden" name="armor" value="1" />
65                <input type="hidden" name="preview" value="" />
66                <input type="hidden" name="sid" value="" />
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="" onfocus="mtCommentFormOnFocus()" />
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="" onfocus="mtCommentFormOnFocus()" />
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="" onfocus="mtCommentFormOnFocus()" />
79                    </div>
80                    <div id="comment-form-remember-me">
81                        <input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="mtRememberMeOnClick(this)" value="1" accesskey="r" />
82                        <label for="comment-bake-cookie"><__trans phrase="Remember personal info?"></label>
83                    </div>
84                </div>
85                <div id="comment-form-reply" style="display:none">
86                    <input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="mtSetCommentParentID()" />
87                    <label for="comment-reply" id="comment-reply-label"></label>
88                </div>
89                <div id="comments-open-text">
90                    <label for="comment-text"><__trans phrase="Comments">
91                    <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label>
92                    <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtCommentFormOnFocus()"></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                </div>
99            </form>
100
101
102        </div>
103    </div>
104    <script type="text/javascript">
105    <!--
106    mtAttachEvent("load", mtEntryOnLoad);
107    mtAttachEvent("unload", mtEntryOnUnload);
108    //-->
109    </script>
110    </mt:IfCommentsAccepted>
111
112
113</div>
114</mt:IfCommentsActive>
Note: See TracBrowser for help on using the browser.