Back to PhocaGalleryFileUploadMultiple 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_PHOCAGALLERY_NOT_INSTALLED_GEARS');
            break;
        case 3:
            $name = 'silverlight_uploader';
            $msg = Text::_('COM_PHOCAGALLERY_NOT_INSTALLED_SILVERLIGHT');
            break;
        case 4:
            $name = 'html5_uploader';
            $msg = Text::_('COM_PHOCAGALLERY_NOT_SUPPORTED_HTML5');
            break;
        case 5:
            $name = 'browserplus_uploader';
            $msg = Text::_('COM_PHOCAGALLERY_NOT_INSTALLED_BROWSERPLUS');
            break;
        case 6:
            $name = 'html4_uploader';
            $msg = Text::_('COM_PHOCAGALLERY_NOT_SUPPORTED_HTML4');
            break;
        case 1:
        default:
            $name = 'flash_uploader';
            $msg = Text::_('COM_PHOCAGALLERY_NOT_INSTALLED_FLASH');
            break;
    }
    $style = '';
    if ($width != '') {
        $style .= 'width: ' . (int) $width . 'px;';
    }
    if ($height != '') {
        $style .= 'height: ' . (int) $height . 'px;';
    }
    return '<div id="' . $name . '" style="' . $style . '">' . $msg . '</div>';
}