_sIframeId = 'bx-form-input-files-' . $sUniqId . '-iframe'; $this->_sButtonTemplate = 'uploader_button_simple.html'; } /** * Get uploader button title */ public function getUploaderButtonTitle($mixed = false) { if (is_string($mixed)) return $mixed; elseif (is_array($mixed) && isset($mixed['Simple'])) return $mixed['Simple']; else return _t('_sys_uploader_simple_button_name'); } /** * Show uploader form. * @return HTML string */ public function getUploaderForm($isMultiple = true, $iContentId = false) { parent::getUploaderForm($isMultiple, $iContentId); $oTemplate = BxDolTemplate::getInstance(); $sForm = $oTemplate->parseHtmlByName('uploader_form_simple.html', array( 'form_container_id' => $this->_sFormContainerId, 'errors_container_id' => $this->_sErrorsContainerId, 'uploader_instance_name' => $this->getNameJsInstanceUploader(), 'restrictions_text' => $this->getRestrictionsText(), 'iframe_id' => $this->_sIframeId, 'engine' => $this->_aObject['engine'], 'storage_object' => $this->_sStorageObject, 'uniq_id' => $this->_sUniqId, 'multiple' => $isMultiple, 'content_id' => $iContentId, )); bx_import('BxTemplFunctions'); return BxTemplFunctions::getInstance()->transBox($sForm); } }