Commit 59f1fa6d authored by frjo's avatar frjo
Browse files

Better handeling of rel attribute for Inserted links.

parent e90b24c4
......@@ -22,4 +22,4 @@
* - __description__: A description of the image, sometimes used as a caption.
*/
?>
<a href="<?php print $link_path; ?>" title="__title__" class="colorbox colorbox-insert-image" rel="gallery-<?php print $gallery_id; ?>"><img src="<?php print $image_path; ?>" alt="__alt__" title="__title__" class="imagecache imagecache-<?php print $style_name; ?>" /></a>
\ No newline at end of file
<a href="<?php print $link_path; ?>" title="__title__" class="colorbox colorbox-insert-image" rel="<?php print $gallery_id; ?>"><img src="<?php print $image_path; ?>" alt="__alt__" title="__title__" class="imagecache imagecache-<?php print $style_name; ?>" /></a>
\ No newline at end of file
......@@ -132,10 +132,10 @@ function template_preprocess_colorbox_insert_image(&$variables) {
case 0:
case 1:
case 2:
$variables['gallery_id'] = 'all';
$variables['gallery_id'] = 'gallery-all';
break;
case 3:
$variables['gallery_id'] = 'insert-' . $variables['item']['fid'];
$variables['gallery_id'] = '';
break;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment