diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc index 38e3df90376a252d73d6d5024d7c591396dd4b90..4b2ce6076d07beb61d0af959900d8e58afd8d8fe 100644 --- a/lightbox2.formatter.inc +++ b/lightbox2.formatter.inc @@ -239,8 +239,13 @@ function theme_imagefield_image_imagecache_lightbox2($view_preset, $field_name, else { $full_rel = $rel .'[]['. $caption .']'; } + $class = ''; + if ($view_preset != 'original') { + $class = 'imagecache imagecache-' . $field_name . ' imagecache-' . $view_preset . ' imagecache-' . $field_name . '-' . $view_preset; + } $link_attributes = array( 'rel' => $full_rel, + 'class' => 'imagefield imagefield-lightbox2 imagefield-lightbox2-' . $view_preset . ' imagefield-' . $field_name . ' ' . $class, ); $attributes = array();