Inline Module und Thickbox Integration


Diese Code sollte eigentlich schon den ganzen Magic machen 😉 Also inline Tag Filtern und ein Thickbox Effekt drüber legen. -> ich habe es noch nicht ausprobiert.

title) ? $file->title : $file->filename); $inline_preset = $field == 'teaser' ? 'inline_teaser_preset' : 'inline_full_preset';

if (module_exists('imagecache') && variable_get($inline_preset, '') != '') {
$image = theme('imagecache',
variable_get($inline_preset, ''),
$file->filepath,
$title,
$title,
array('class' => 'inline')
);
}
else {
$image = theme('image',
$file->filepath,
$title,
$title,
array('class' => 'inline')
);
}

if (variable_get('inline_link_img', '1')) {
$attributes = array(
'class' => 'inline-image-link thickbox',
'rel' => 'gallery-' . $file->nid,
'title' => t("View") .': '. $title,
);
$html = l($image, $file->filepath, $attributes, NULL, NULL, FALSE, TRUE);
}
else {
$html = $image;
}

return $html;
}
?>