{if $attachment instanceof \openvk\Web\Models\Entities\Photo} {if !$attachment->isDeleted()} {$attachment->getDescription()} {else} {_attach_no_longer_available} {/if} {elseif $attachment instanceof \openvk\Web\Models\Entities\Video}
{$attachment->getName()}
{elseif $attachment instanceof \openvk\Web\Models\Entities\Poll} {presenter "openvk!Poll->view", $attachment->getId()} {elseif $attachment instanceof \openvk\Web\Models\Entities\Post} {php $GLOBALS["_nesAttGloCou"] = (isset($GLOBALS["_nesAttGloCou"]) ? $GLOBALS["_nesAttGloCou"] : 0) + 1} {if $GLOBALS["_nesAttGloCou"] > 2} {_open_post} {else} {include "post.xml", post => $attachment, compact => true} {/if} {else} {_version_incompatibility} {/if} {php $GLOBALS["_nesAttGloCou"] = NULL}