From 04491acca0b392400ad82a5135e23aa8559563cf Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Mon, 13 Apr 2026 11:16:02 +0300 Subject: [PATCH] Allow htmlInject content to render elements --- app/templates/element/form/htmlInject.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/templates/element/form/htmlInject.php b/app/templates/element/form/htmlInject.php index 465a76c77..9b043b6d4 100644 --- a/app/templates/element/form/htmlInject.php +++ b/app/templates/element/form/htmlInject.php @@ -26,11 +26,10 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ - declare(strict_types=1); // View vars -// $content - the text or markup to be rendered +// $content - the text or markup to be rendered OR an element spec array // $type - accepts "subtitle" or "html" // $vv_action @@ -43,7 +42,16 @@
  • - - + + create()). + if (is_array($content) && !empty($content['element'])) { + $params = $content['params'] ?? []; + echo $this->element($content['element'], $params); + } else { + // Otherwise treat as raw HTML/text. + echo $content; + } + ?>
  • \ No newline at end of file