{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} {if $attachment->getType() === 0}
{else} {var $driver = $attachment->getVideoDriver()} {if !$driver} {_version_incompatibility} {else} {$driver->getEmbed("100%")|noescape} {/if} {/if}
{$attachment->getName()}
{elseif $attachment instanceof \openvk\Web\Models\Entities\Poll} {presenter "openvk!Poll->view", $attachment->getId()} {elseif $attachment instanceof \openvk\Web\Models\Entities\Note} {if !$attachment->isDeleted()}
{_note} {ovk_proc_strtr($attachment->getName(), 66)}
{else}
{_note} {_deleted}
{/if} {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}