function shadowbox_imagecache_create_url in Shadowbox 5
Same name and namespace in other branches
- 5.2 shadowbox.module \shadowbox_imagecache_create_url()
- 6.4 shadowbox.module \shadowbox_imagecache_create_url()
- 6.2 shadowbox.module \shadowbox_imagecache_create_url()
- 6.3 shadowbox.module \shadowbox_imagecache_create_url()
Implementation of the imagecache_create_url() function for integration with imagecache module versions prior to imagecache 2.
1 call to shadowbox_imagecache_create_url()
- theme_imagefield_image_imagecache_shadowbox in ./
shadowbox.module - Implementation of theme_imagefield_image_imagecache_shadowbox().
File
- ./
shadowbox.module, line 653 - Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.
Code
function shadowbox_imagecache_create_url($preset, $filepath) {
if (function_exists('imagecache_create_url')) {
return imagecache_create_url($preset, $filepath);
}
else {
$path = _imagecache_strip_file_directory($filepath);
return file_create_url(file_directory_path() . '/imagecache/' . $preset . '/' . $path);
}
}