You are here

function theme_lightbox2_image in Lightbox2 5.2

Same name and namespace in other branches
  1. 8 lightbox2.formatter.inc \theme_lightbox2_image()
  2. 6 lightbox2.formatter.inc \theme_lightbox2_image()
  3. 7.2 lightbox2.formatter.inc \theme_lightbox2_image()
  4. 7 lightbox2.formatter.inc \theme_lightbox2_image()

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

1 theme call to theme_lightbox2_image()
theme_imagefield_image_imagecache_lightbox2 in ./lightbox2.module
Generate the HTML output for imagefield + imagecache images so they can be opened in a lightbox by clicking on the image on the node page or in a view.

File

./lightbox2.module, line 2175
Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.

Code

function theme_lightbox2_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;
}