Back to PhocacartFileUploadmultiple class

Method getMultipleUploadHTML

public
getMultipleUploadHTML
(mixed $width = '', mixed $height = '330', mixed $mootools = 1)

Method getMultipleUploadHTML - Source code

public function getMultipleUploadHTML($width = '', $height = '330', $mootools = 1)
{
    switch ($this->method) {
        /*case 2:
        			$name		= 'gears_uploader';
        			$msg		= Text::_('COM_PHOCACART_NOT_INSTALLED_GEARS');
        		break;
        		case 3:
        			$name		= 'silverlight_uploader';
        			$msg		= Text::_('COM_PHOCACART_NOT_INSTALLED_SILVERLIGHT');
        		break;*/
        case 4:
        default:
            $name = 'html5_uploader';
            $msg = Text::_('COM_PHOCACART_NOT_SUPPORTED_HTML5');
            break;
    }
    $style = '';
    if ($width != '') {
        $style .= 'width: ' . (int) $width . 'px;';
    }
    if ($height != '') {
        $style .= 'height: ' . (int) $height . 'px;';
    }
    return '<div id="' . $name . '" style="' . $style . '">' . $msg . '</div>';
}