{$post->getText()|noescape} + + {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], parent => $post, parentType => "post"} +
+
-
-
- {include "../attachment.xml", attachment => $attachment} +
+
+ {include "../attachment.xml", attachment => $attachment, post => $post}
diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index 9dadeaab..3223e6b7 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -65,8 +65,19 @@ {$post->getText()|noescape} -
-
+ {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], parent => $post, parentType => "post"} +
+
+ +
+
{include "../attachment.xml", attachment => $attachment}
diff --git a/Web/Presenters/templates/components/textArea.xml b/Web/Presenters/templates/components/textArea.xml index 939e5ad5..8727addf 100644 --- a/Web/Presenters/templates/components/textArea.xml +++ b/Web/Presenters/templates/components/textArea.xml @@ -1,5 +1,6 @@ {php if(!isset($GLOBALS["textAreaCtr"])) $GLOBALS["textAreaCtr"] = 10;} {var $textAreaId = ($post ?? NULL) === NULL ? (++$GLOBALS["textAreaCtr"]) : $post->getId()} +{var $textAreaId = ($custom_id ?? NULL) === NULL ? $textAreaId : $custom_id}
@@ -8,8 +9,11 @@