You are here

function theme_shadowbox_image in Shadowbox 6.3

Same name and namespace in other branches
  1. 5.2 shadowbox.module \theme_shadowbox_image()
  2. 5 shadowbox.module \theme_shadowbox_image()
  3. 6.4 shadowbox.module \theme_shadowbox_image()
  4. 6.2 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 227
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

Code

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