芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentformpro/src/Components/Uploader.php
makeElementId($data, $form).'_'.Helper::$formInstance; $data['attributes']['multiple'] = true; if($tabIndex = \FluentForm\App\Helpers\Helper::getNextTabIndex()) { $data['attributes']['tabindex'] = $tabIndex; } $btnText = ArrayHelper::get($data, 'settings.btn_text'); if(!$btnText) { $btnText = __('Choose File', 'fluentformpro'); } $ariaRequired = 'false'; if (ArrayHelper::get($data, 'settings.validation_rules.required.value')) { $ariaRequired = 'true'; } if (ArrayHelper::get($data, 'settings.upload_bttn_ui') == 'dropzone') { $data['settings']['container_class'] .= ' ff-dropzone'; } $elMarkup = "
".$btnText."
"; $elMarkup = sprintf($elMarkup, $this->buildAttributes($data['attributes'], $form)); $html = $this->buildElementMarkup($elMarkup, $data, $form); $html = apply_filters_deprecated( 'fluentform_rendering_field_html_' . $elementName, [ $html, $data, $form ], FLUENTFORM_FRAMEWORK_UPGRADE, 'fluentform/rendering_field_html_' . $elementName, 'Use fluentform/rendering_field_html_' . $elementName . ' instead of fluentform_rendering_field_html_' . $elementName ); echo apply_filters('fluentform/rendering_field_html_' . $elementName, $html, $data, $form); $this->enqueueProScripts(); } /** * Enqueue required scripts * @return void */ public function enqueueProScripts() { wp_enqueue_script('fluentform-uploader-jquery-ui-widget'); wp_enqueue_script('fluentform-uploader-iframe-transport'); wp_enqueue_script('fluentform-uploader'); } }