From beec70e3eafc681d71cf66a6ad479c2fe6b12297 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Tue, 13 Dec 2022 01:24:22 +0300 Subject: [PATCH] Posts: add multiple kakahi for microblog --- .../templates/components/post/microblogpost.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index daf2c275..ae1de961 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -61,9 +61,14 @@
{$post->getText()|noescape} -
-
- {include "../attachment.xml", attachment => $attachment} + {var $width = ($GLOBALS["_bigWall"] ?? false) ? 550 : 320} + {if isset($GLOBALS["_nesAttGloCou"])} + {var $width = $width - 70 * $GLOBALS["_nesAttGloCou"]} + {/if} + {var $attachmentsLayout = $post->getChildrenWithLayout($width)} +
+
+ {include "../attachment.xml", attachment => $attachment[2]}