root/trunk/FacebookCommenters/comment_detail.mtml.example

Revision 1427, 2.5 kB (checked in by mpaschal, 10 months ago)

Added an example template file and instructions in README. Case # 86960

Line 
1<div class="comment<mt:If name="__last__"> last</mt:If>"<mt:IfArchiveTypeEnabled archive_type="Individual"> id="comment-<$mt:CommentID$>"</mt:IfArchiveTypeEnabled>>
2    <div class="inner">
3        <div class="comment-header">
4            <div class="asset-meta">
5<mt:if tag="CommenterAuthType" eq="Facebook">
6              <div class="user-pic comment-fb-<$MTCommenterUsername>">
7                  <a href="http://www.facebook.com/profile.php?id=<$MTCommenterUsername>" class="auth-icon"><img src="<$MTCommenterAuthIconURL size="logo_small"$>" alt="<$mt:CommenterAuthType$>"/></a>
8                  <fb:profile-pic uid="<$MTCommenterUsername>" size="square" linked="true"><img src="http://static.ak.connect.facebook.com/pics/q_default.gif" /></fb:profile-pic>
9              </div>
10<mt:else>
11                <$mt:Include module="<__trans phrase="Userpic">" userpic_size="36" userpic_type="commenter"$>
12</mt:if>
13                <span class="byline">
14                    <$mt:CommentAuthorIdentity$>
15<mt:setvarblock name="comment_author_link">
16                        <span class="vcard author">
17<mt:if tag="CommenterAuthType" eq="Facebook">
18                      <fb:name uid="<$MTCommenterUsername>" linked="true" useyou="false"><a href="http://www.facebook.com/profile.php?id=<$MTCommenterUsername>"><$MTCommenterName></a></fb:name>
19<mt:else>
20    <mt:IfCommenterIsAuthor>
21                                <a href="<$mt:Var name="profile_view_url" encode_html="1"$><$mt:CommenterID$>"><$mt:CommenterName encode_html="1"$></a>
22        <mt:Else>
23                                <$mt:CommentAuthorLink$>
24    </mt:IfCommenterIsAuthor>
25</mt:if>
26                        </span>
27</mt:setvarblock>
28<mt:IfCommentParent>
29                    <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$mt:var name="comment_author_link"$>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>">
30<mt:Else>
31                    <$mt:var name="comment_author_link"$>
32</mt:IfCommentParent>
33                    <span class="separator">|</span> <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a>
34<mt:Unless name="comment">
35    <mt:IfCommentsAccepted>
36                    <span class="separator">|</span> <$mt:CommentReplyToLink$>
37    </mt:IfCommentsAccepted>
38</mt:Unless>
39                </span>
40            </div>
41        </div>
42        <div class="comment-content">
43            <$mt:CommentBody$>
44        </div>
45    </div>
46</div>
47
Note: See TracBrowser for help on using the browser.