From cde90563ae02a4c05025695d525e335d8a8c247f Mon Sep 17 00:00:00 2001 From: random-solver Date: Thu, 5 Nov 2026 02:56:02 +0530 Subject: [PATCH] feat(file): add [INLINE_UPLOAD] qtag for single/multiple inline file replacement via Shadow (#163) --- .../file/classes/Qtags/InlineUpload.qtag.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/modules/file/classes/Qtags/InlineUpload.qtag.php diff --git a/src/modules/file/classes/Qtags/InlineUpload.qtag.php b/src/modules/file/classes/Qtags/InlineUpload.qtag.php new file mode 100644 index 000000000..db8dbc7b9 --- /dev/null +++ b/src/modules/file/classes/Qtags/InlineUpload.qtag.php @@ -0,0 +1,32 @@ +env, $this->getAttribute('node')); + if (!$node || !$node->exists) { + return ''; + } + $isSingle = $this->getAttribute('single') !== 'false'; + $field = $this->getAttribute('field') ?: 'thumbnail'; + $label = $this->getAttribute('title') ?: ($isSingle ? 'Replace File' : 'Upload Files'); + $nodeName = htmlspecialchars($node->getName(), ENT_QUOTES); + $singleFlag = $isSingle ? 'true' : 'false'; + + $html = '' + . htmlspecialchars($label) + . ''; + + return $html; + } +}