{extends "../@layout.xml"} {block title}{_post}{/block} {block header} {$wallOwner->getCanonicalName()} » {_wall} » {_post} {/block} {block content} {include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoPinLink => TRUE, forceNoDeleteLink => TRUE}
{include "../components/comments.xml", comments => $comments, count => $cCount, page => $cPage, model => "posts", parent => $post, readOnly => (!$wallOwner->getPrivacyPermission('comments.write', $thisUser) XOR $post->isClosed()) }

{_actions}

{if isset($thisUser)} {var $canPin = $post->canBePinnedBy($thisUser)} {var $canClose = $post->canBeClosedBy($thisUser)} {var $canDelete = $post->canBeDeletedBy($thisUser)} {/if} {if $canPin} {if $post->isPinned()} {_unpin} {else} {_pin} {/if} {/if} {if $canClose} {if $post->isClosed()} {_enable_comments} {else} {_disable_comments} {/if} {/if} {_delete}
{/block}