|
can_post |
|
can_post is a boolean variable that is true if the reader is allowed to post a comment in reply to this article.
If the publisher of the blog checks the Allow anonymous reader comments checkbox, which is located in the Options sidebar of the General Settings page in the Settings section, can_post is true for both logged-in and non-logged-in readers. If the publisher does not check this checkbox, can_post is true for logged-in readers and false for non-logged-in readers.
Example
For the example below, assume that anonymous reader comments are not allowed. Logged-in readers see the text Comment away! while readers who are not logged in see No comments for you!:
{{if can_post}}
Comment away!
{{else}}
No comments for you!
{{/if}}