Active
Project:
Image Caption
Version:
6.x-2.3
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2009 at 23:27 UTC
Updated:
24 Oct 2009 at 23:27 UTC
hey there,
during my portfolio redesign, I felt a need for captions besides, and not below, images. the only way I could do this was directly hacking lines 82-89 of image_caption_filter.module, adding the following code:
//captions besides images
if (in_array($class, array('image-left2', 'image-right2')) && ($title)) {
$imgText = preg_replace ('/class=\"(.+?)\"/i', '', $imgText);
$width += 100;
$returnText = "<div class=\"" . $class . "\" style=\"width: " . $width . "px\">"
. $imgText
. "<div class=\"caption\">" . $title . "</div></div>";
return $returnText . $alt_warning;
}
I obviously created classes image-left2 and image-right2.
now I'm not a big fan of hacking modules, so I'd like to suggest this as a feature. can do?
cheers,
Luciano