function getContainer() { $path = $this->cx->getCodeBaseCoreModulePath() . '/Uploader/View/Template/Backend/Uploader' . $this->options['uploader-type'] . '.html'; $template = new Sigma(); $template->loadTemplateFile($path); $template->setVariable(array('UPLOADER_ID' => $this->id, 'UPLOADER_CODE' => file_get_contents($this->cx->getCodeBaseCoreModulePath() . '/Uploader/View/Template/Backend/Uploader.html'))); return $template->get(); }
/** * @param string $buttonName * * @return string */ function getXHtml($buttonName = "Upload") { $path = $this->cx->getCodeBaseCoreModulePath() . '/Uploader/View/Template/Backend/Uploader' . $this->options['uploader-type'] . '.html'; $template = new Sigma(); $template->loadTemplateFile($path); $template->setVariable(array('UPLOADER_ID' => $this->id, 'UPLOADER_CODE' => file_get_contents($this->cx->getCodeBaseCoreModulePath() . '/Uploader/View/Template/Backend/Uploader.html'))); if ($this->options['uploader-type'] == self::UPLOADER_TYPE_INLINE) { $this->addClass('uploader-button-hidden'); } return '<button ' . $this->getOptionsString() . ' disabled>' . $buttonName . '</button>' . $template->get(); }