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; + } +}