{var $owner = $author->getId()} {$post->getText()|noescape} {var $width = ($GLOBALS["_bigWall"] ?? false) ? 550 : 320} {if isset($GLOBALS["_nesAttGloCou"])} {var $width = $width - 70 * $GLOBALS["_nesAttGloCou"]} {/if} {var $attachmentsLayout = $post->getChildrenWithLayout($width)}
{include "../attachment.xml", attachment => $attachment[2], parent => $post, parentType => "post", tilesCount => sizeof($attachmentsLayout->tiles)}
{include "../attachment.xml", attachment => $attachment}

 ! {_post_is_ad}
{_source}: {$post->getSource(true)|noescape}
{var $actualAuthor = $post->getOwner(false)} {_author}: {$actualAuthor->getCanonicalName()}
{if is_null($thisUser)} {var $forceNoDeleteLink = true} {var $forceNoPinLink = true} {/if} {if !($forceNoEditLink ?? false) && $post->canBeEditedBy($thisUser)} {_edit}  |  {/if} {if !($forceNoDeleteLink ?? false) && $canBeDeleted} {_delete}  |  {/if} {if !($forceNoPinLink ?? false) && $canBePinned} {if $post->isPinned()} {_unpin} {else} {_pin} {/if}  |  {/if} {_comments} {if $commentsCount > 0} ({$commentsCount}) {/if} {if !($forceNoCommentsLink ?? false) && !($forceNoShareLink ?? false)}  |  {/if} {_share} {if $repostsCount > 0} ({$repostsCount}) {/if}