Commit ff74014d authored by frjo's avatar frjo
Browse files

Issue #1237160 by OnkelTem: Colorbox + Populate HTML image tags with dimension...

Issue #1237160 by OnkelTem: Colorbox + Populate HTML image tags with dimension attributes (like D6 imagefield) without re-introducing I/O.
parent 525e56aa
......@@ -29,6 +29,11 @@ function theme_colorbox_image_formatter($variables) {
'style_name' => $variables['colorbox_node_style'],
);
if (isset($item['width']) && isset($item['height'])) {
$image['width'] = $item['width'];
$image['height'] = $item['height'];
}
// If the title is empty use alt or the node title in that order.
if (empty($image['title'])) {
if (!empty($image['alt'])) {
......
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