Skip to content

Instantly share code, notes, and snippets.

@ETBlue
Created March 14, 2011 22:52
Show Gist options
  • Save ETBlue/870036 to your computer and use it in GitHub Desktop.
Save ETBlue/870036 to your computer and use it in GitHub Desktop.
preview-comment-step-8
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:post.allowComments'>
<b:if cond='data:post.numComments == 0'>
<a class='comment-link' expr:href='data:post.addCommentUrl'>留下回應</a>
<b:else/>
<a class='comment-preview' expr:onclick='&quot;var comments= \&quot;&quot; +data:post.id+ &quot;_comment-preview\&quot;; var url=\&quot;&quot; +data:post.addCommentUrl+ &quot;\&quot;; $(\&quot;#\&quot;+comments).toggle(); $(\&quot;.\&quot;+comments).load(url+ \&quot; #Blog1_comments-block-wrapper\&quot;);&quot;' href='javascript:void(0)' title='預覽回應 preview comments'>
預覽 <b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
</b:if>
</b:if>
</b:if>
</b:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment