Posts: add multiple kakahi for microblog

This commit is contained in:
veselcraft 2022-12-13 01:24:22 +03:00
parent 4c758e35fc
commit beec70e3ea
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -61,9 +61,14 @@
<div class="text" id="text{$post->getPrettyId()}"> <div class="text" id="text{$post->getPrettyId()}">
{$post->getText()|noescape} {$post->getText()|noescape}
<div n:ifcontent class="attachments_b"> {var $width = ($GLOBALS["_bigWall"] ?? false) ? 550 : 320}
<div class="attachment" n:foreach="$post->getChildren() as $attachment" data-localized-nsfw-text="{_nsfw_warning}"> {if isset($GLOBALS["_nesAttGloCou"])}
{include "../attachment.xml", attachment => $attachment} {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 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]}
</div> </div>
</div> </div>
</div> </div>