You are here

function theme_photoswipe_image in PhotoSwipe 6

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

1 theme call to theme_photoswipe_image()
theme_imagefield_image_imagecache_photoswipe in ./photoswipe.module
Implementation of theme_imagefield_image_imagecache_photoswipe().

File

./photoswipe.module, line 313

Code

function theme_photoswipe_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}/>";
}