function theme_imagepicker_postlet_view in Image Picker 6.2
1 theme call to theme_imagepicker_postlet_view()
- imagepicker_postlet_upload in contribs/
imagepicker_postlet/ imagepicker_postlet.module - Function to display the postlet applet
File
- contribs/
imagepicker_postlet/ imagepicker_postlet.module, line 465 - Enables upload of images using Postlet java applet. http://www.postlet.com/ http://sourceforge.net/projects/postlet/
Code
function theme_imagepicker_postlet_view($url, $destination, $endpage = "", $maxthumbsize = 100, $scaleto = FALSE, $watermark = FALSE, $width = 600, $height = 200) {
$output = '<div class="imgp_help">' . t('Click the "Add" button and select the images you\'d like to upload') . '</div>';
$output .= '<div class="imgp_help">' . t('Default thumbnail size of %thm px, scaling %scm%wm', array(
'%thm' => $maxthumbsize,
'%scm' => $scaleto ? $scaleto . ' px' : 'none',
'%wm' => $watermark ? t(', Watermarking enabled') : '',
)) . '</div>';
$output .= '<div class="imagex postlet">
<applet name="postlet" code="Main.class" archive="' . $url . '" width="' . $width . '" height="' . $height . '" mayscript>
<param name = "maxthreads" value = "5" />
<param name = "language" value = "EN" />
<param name = "type" value = "application/x-java-applet;version=1.3.1" />
<param name = "destination" value = "' . $destination . '" />';
if ($endpage) {
$output .= '
<param name = "endpage" value ="' . $endpage . '" />';
}
$output .= '
<param name = "backgroundcolour" value = "16777215" />
<param name = "tableheaderbackgroundcolour" value = "14079989" />
<param name = "tableheadercolour" value = "0" />
<param name = "warnmessage" value = "false" />
<param name = "autoupload" value = "false"/>
<param name = "helpbutton" value = "false"/>
<param name = "removebutton" value = "true" />
<param name = "addbutton" value = "true"/>
<param name = "uploadbutton" value = "true" />
<param name = "fileextensions" value = "Image Files,jpg,gif,jpeg,png" />
</applet>
</div>';
return $output;
}