You are here

function shadowbox_imagecache_create_url in Shadowbox 6.4

Same name and namespace in other branches
  1. 5.2 shadowbox.module \shadowbox_imagecache_create_url()
  2. 5 shadowbox.module \shadowbox_imagecache_create_url()
  3. 6.2 shadowbox.module \shadowbox_imagecache_create_url()
  4. 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 335
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);
    $files_dir = file_directory_path();
    return file_create_url("{$files_dir}/imagecache/{$preset}/{$path}");
  }
}