Show
Ignore:
Timestamp:
07/29/08 02:47:24 (16 months ago)
Author:
bsmith
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Vanilla/templates/vanilla+authentication+comments/comment_preview.mtml

    r891 r916  
    1 <__trans_section component="commercial"> 
    2 <$mt:Var name="page_layout" value="layout-wm"$> 
    3 <mt:SetVarBlock name="page_title"><__trans phrase="Previewing your Comment"></mt:SetVarBlock> 
    4 <mt:SetVarBlock name="title"><$mt:BlogName encode_html="1"$>: <$mt:Var name="page_title"$></mt:SetVarBlock> 
    5 <mt:SetVarBlock name="html_head"> 
     1<mt:IncludeBlock module="wrapper"> 
     2 
     3    <mt:SetVarBlock name="html_head"> 
    64    <script type="text/javascript"> 
    75    /* <![CDATA[ */ 
     
    108    /* ]]> */ 
    119    </script> 
    12 </mt:SetVarBlock> 
    13 <$mt:Include module="<__trans phrase="Header">" body_class="mt-comment-preview"$> 
     10    </mt:SetVarBlock> 
    1411 
    15 <h1 id="page-title"><$mt:Var name="page_title"$></h1> 
     12    <h1><__trans phrase="Previewing your Comment"></h1> 
    1613 
    17 <$mt:Include module="<__trans phrase="Comment Detail">"$> 
     14    <div id="comments"> 
     15         
     16        <ol class="comments-content"> 
     17            <li> 
     18                <div class="comment-header"> 
     19                    <$mt:CommentAuthorIdentity$> 
     20                    <mt:IfCommentParent> 
     21                        <__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>"> 
     22                    <mt:Else> 
     23                        <$mt:CommentAuthorLink$> 
     24                    </mt:IfCommentParent> 
     25                    | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a> 
     26                </div> 
     27                <div class="comment-body"> 
     28                    <$mt:CommentBody$> 
     29                </div> 
     30            </li> 
     31        </ol> 
    1832 
    19 <$mt:Include module="<__trans phrase="Comments">"$> 
     33        <mt:IfCommentsAccepted> 
     34        <div id="comments-open"> 
     35            <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2> 
     36            <div class="comments-open-content"> 
     37                <div id="comment-greeting"></div> 
     38                <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)"> 
     39                    <input type="hidden" name="static" value="1" /> 
     40                    <input type="hidden" name="entry_id" value="<$mt:EntryID$>" /> 
     41                    <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" /> 
     42                    <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id" /> 
     43                    <input type="hidden" name="armor" value="1" /> 
     44                    <input type="hidden" name="preview" value="" /> 
     45                    <input type="hidden" name="sid" value="" /> 
     46                    <div id="comments-open-data"> 
     47                        <label for="comment-author"><__trans phrase="Name"></label> 
     48                        <input id="comment-author" name="author" size="30" value="<mt:If name="comment_preview"><$mt:CommentAuthor encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" /> 
    2049 
    21 <$mt:Include module="<__trans phrase="Footer">"$> 
    22 </__trans_section> 
     50                        <label for="comment-email"><__trans phrase="Email Address"></label> 
     51                        <input id="comment-email" name="email" size="30" value="<mt:If name="comment_preview"><$mt:CommentEmail encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" /> 
     52 
     53                        <label for="comment-url"><__trans phrase="URL"></label> 
     54                        <input id="comment-url" name="url" size="30" value="<mt:If name="comment_preview"><$mt:CommentURL encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" /> 
     55                    </div> 
     56                    <div id="comment-form-reply"<mt:IfCommentParent><mt:Else> style="display:none"</mt:IfCommentParent>> 
     57                        <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentID$>"<mt:IfCommentParent> checked="checked"</mt:IfCommentParent> onclick="mtSetCommentParentID()" /> 
     58                        <label for="comment-reply" id="comment-reply-label"><mt:IfCommentParent><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>"></mt:IfCommentParent></label> 
     59                    </div> 
     60                    <div id="comments-open-text"> 
     61                        <label for="comment-text"><__trans phrase="Comments"> 
     62                        <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label> 
     63                        <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtCommentFormOnFocus()"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea> 
     64                    </div> 
     65                    <div id="comments-open-captcha"></div> 
     66                    <div id="comments-open-footer"> 
     67                        <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" /> 
     68                        <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" /> 
     69                        <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$mt:EntryPermalink$>'" /> 
     70                    </div> 
     71                </form> 
     72            </div> 
     73        </div> 
     74        <script type="text/javascript"> 
     75        <!-- 
     76        mtAttachEvent("load", mtEntryOnLoad); 
     77        mtAttachEvent("unload", mtEntryOnUnload); 
     78        //--> 
     79        </script> 
     80        </mt:IfCommentsAccepted> 
     81 
     82        <mt:Comments> 
     83            <mt:CommentsHeader> 
     84        <h2 class="comments-header"><__trans phrase="Comments"></h2> 
     85        <ol class="comments-content"> 
     86            </mt:CommentsHeader> 
     87            <li id="comment-<$mt:CommentID$>"> 
     88                <div class="comment-header"> 
     89                    <$mt:CommentAuthorIdentity$> 
     90                    <mt:IfCommentParent> 
     91                        <__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>"> 
     92                    <mt:Else> 
     93                        <$mt:CommentAuthorLink$> 
     94                    </mt:IfCommentParent> 
     95                    | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a> 
     96                    <mt:IfCommentsAccepted> 
     97                    | <$mt:CommentReplyToLink$> 
     98                    </mt:IfCommentsAccepted> 
     99                </div> 
     100                <div class="comment-body"> 
     101                    <$mt:CommentBody$> 
     102                </div> 
     103            </li> 
     104            <mt:CommentsFooter> 
     105        </ol> 
     106            </mt:CommentsFooter> 
     107        </mt:Comments> 
     108 
     109    </div> 
     110 
     111</mt:IncludeBlock>