You are here

function theme_shadowbox_image in Shadowbox 5

Same name and namespace in other branches
  1. 5.2 shadowbox.module \theme_shadowbox_image()
  2. 6.4 shadowbox.module \theme_shadowbox_image()
  3. 6.2 shadowbox.module \theme_shadowbox_image()
  4. 6.3 shadowbox.module \theme_shadowbox_image()

Theme function for displaying the shadowbox trigger image in an imagefield.

1 theme call to theme_shadowbox_image()
theme_imagefield_image_imagecache_shadowbox in ./shadowbox.module
Implementation of theme_imagefield_image_imagecache_shadowbox().

File

./shadowbox.module, line 643
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

Code

function theme_shadowbox_image($path, $alt = '', $title = '', $attributes = NULL) {
  $attributes = drupal_attributes($attributes);
  $image = '<img src="' . file_create_url($path) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . $attributes . ' />';
  return $image;
}