function theme_imagecrop in Image javascript crop 6
Same name and namespace in other branches
- 5 imagecrop.module \theme_imagecrop()
Theme image crop.
Parameters
$url url of image:
$width width of image:
$height height of image:
$resize wether the cropping box is resizeble or not:
Return value
$output html of the javascript crop area
1 theme call to theme_imagecrop()
- imagecrop_docrop in ./
imagecrop.admin.inc - Callback with javascript crop.
File
- ./
imagecrop.module, line 855 - Provides a javascript toolbox through an imagecache action.
Code
function theme_imagecrop($url, $width, $height, $resize = 0) {
$url = str_replace("'", "\\'", $url);
$output = '<div class="imagefield-crop-wrapper" id="imagefield-crop-wrapper" style="position:absolute;margin-top: 45px;"><div id="image-crop-container" style="width:' . $width . 'px; height:' . $height . 'px;"><img src="' . $url . '" id="cropbox"/></div></div>';
return $output;
}