{if $attachment instanceof \openvk\Web\Models\Entities\Photo} {if !$attachment->isDeleted()} {var $link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())} {$attachment->getDescription()} {else} {_attach_no_longer_available} {/if} {elseif $attachment instanceof \openvk\Web\Models\Entities\Video} {if $tilesCount <= 1} {if $attachment->getType() === 0}
{else} {var $driver = $attachment->getVideoDriver()} {if !$driver} {_version_incompatibility} {else} {$driver->getEmbed("100%")|noescape} {/if} {/if}
{$attachment->getName()} ({$attachment->getFormattedLength()})
{else}
{$attachment->getFormattedLength()}
{/if} {elseif $attachment instanceof \openvk\Web\Models\Entities\Poll} {presenter "openvk!Poll->view", $attachment->getId()} {elseif $attachment instanceof \openvk\Web\Models\Entities\Note}
{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} {elseif $attachment instanceof \openvk\Web\Models\Entities\Audio}
{include "../Audio/player.xml", audio => $attachment}
{else} {_version_incompatibility} {/if} {php $GLOBALS["_nesAttGloCou"] = NULL}