mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Posts: Fix poll display in microblog posts
This commit is contained in:
parent
089c805038
commit
4109dfe8c3
1 changed files with 7 additions and 1 deletions
|
@ -68,11 +68,17 @@
|
|||
{var $width = $width - 70 * $GLOBALS["_nesAttGloCou"]}
|
||||
{/if}
|
||||
{var $attachmentsLayout = $post->getChildrenWithLayout($width)}
|
||||
<div n:ifcontent class="attachments_b" style="height: {$attachmentsLayout->height|noescape}; width: {$attachmentsLayout->width|noescape};">
|
||||
<div n:ifcontent class="attachments attachments_b" style="height: {$attachmentsLayout->height|noescape}; width: {$attachmentsLayout->width|noescape};">
|
||||
<div class="attachment" n:foreach="$attachmentsLayout->tiles as $attachment" style="float: {$attachment[3]|noescape}; width: {$attachment[0]|noescape}; height: {$attachment[1]|noescape};" data-localized-nsfw-text="{_nsfw_warning}">
|
||||
{include "../attachment.xml", attachment => $attachment[2], post => $post}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div n:ifcontent class="attachments attachments_m">
|
||||
<div class="attachment" n:foreach="$attachmentsLayout->extras as $attachment">
|
||||
{include "../attachment.xml", attachment => $attachment, post => $post}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div n:if="$post->isAd()" style="color:grey;">
|
||||
<br/>
|
||||
|
|
Loading…
Reference in a new issue