summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2010-06-08 13:13:17 (GMT)
committer Stella Power2010-06-08 13:13:17 (GMT)
commitf053297859d794694c12ae69e854920f93487a1d (patch)
tree73d067ea45aeeceb54bc93128507c4489f4d0d64
parentb23a021a89c6a80133a3fec04376ff03cb9f383f (diff)
#603786 - added in extra css classes to imagefield images
-rw-r--r--lightbox2.formatter.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc
index 38e3df9..4b2ce60 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();