From a9ae7173982919645693c38e2b4164e4a4ab3382 Mon Sep 17 00:00:00 2001 From: sunnyjey <34238611+sunnyjey@users.noreply.github.com> Date: Wed, 20 Jan 2021 23:50:24 +0530 Subject: [PATCH] Added Custom Label Instead of default ugly 'choose file' label, you can display custom label with beautiful css. for eg. Upload CV, Select Avatar etc --- plugins/fabrik_element/fileupload/fileupload.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/fabrik_element/fileupload/fileupload.php b/plugins/fabrik_element/fileupload/fileupload.php index c3a5f15999c..fd9662a1642 100644 --- a/plugins/fabrik_element/fileupload/fileupload.php +++ b/plugins/fabrik_element/fileupload/fileupload.php @@ -2596,7 +2596,13 @@ public function render($data, $repeatCounter = 0) break; } - $str[] = $allRenders . '' . "\n"; + if ($params->get('custom_label') != '') { + $str[] = $allRenders . '
' . "\n"; + } + else { + $str[] = $allRenders . '' . "\n"; + } if ($params->get('fileupload_storage_type', 'filesystemstorage') == 'filesystemstorage' && $params->get('upload_allow_folderselect') == '1') {