function photoswipe_imagecache_create_url in PhotoSwipe 6
Implementation of the imagecache_create_url() function for integration with imagecache module versions prior to imagecache 2.
1 call to photoswipe_imagecache_create_url()
- theme_imagefield_image_imagecache_photoswipe in ./
photoswipe.module - Implementation of theme_imagefield_image_imagecache_photoswipe().
File
- ./
photoswipe.module, line 422
Code
function photoswipe_imagecache_create_url($preset, $filepath) {
if (function_exists('imagecache_create_url')) {
return imagecache_create_url($preset, $filepath);
}
else {
$path = _imagecache_strip_file_directory($filepath);
$files_dir = file_directory_path();
return file_create_url("{$files_dir}/imagecache/{$preset}/{$path}");
}
}