commit e4d1ba1eed6942f56bc2f0d9807fa9beaa5258b2
Author: Randy Fay <randy@randyfay.com>
Date:   Sun Jan 8 07:51:53 2012 -0600

    My #10 on 1081546 adding the colorbox classes

diff --git a/colorbox-insert-image.tpl.php b/colorbox-insert-image.tpl.php
index 76d5bc9..283fc02 100644
--- a/colorbox-insert-image.tpl.php
+++ b/colorbox-insert-image.tpl.php
@@ -10,6 +10,7 @@
  * - $link_path: The URL to the image that Colorbox should open.
  * - $presetname: The ImageCache preset being used.
  * - $gallery_id: The ID of the Colorbox gallery.
+ * - $insert_class: The classes provided by the insert module.
  *
  * Note that ALT and Title fields should not be filled in here, instead they
  * should use placeholders that will be updated through JavaScript when the
@@ -21,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 $presetname; ?>" /></a>
\ No newline at end of file
+<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 "$presetname $insert_class"; ?>" /></a>
\ No newline at end of file
diff --git a/colorbox.theme.inc b/colorbox.theme.inc
index 4a3c14d..f20bbe5 100644
--- a/colorbox.theme.inc
+++ b/colorbox.theme.inc
@@ -111,6 +111,7 @@ function theme_colorbox_imagefield($presetname, $path, $alt = '', $title = '', $
 function template_preprocess_colorbox_insert_image(&$vars) {
   $vars['presetname'] = $vars['item']['presetname'];
   $vars['image_path'] = imagecache_create_url($vars['presetname'], $vars['item']['filepath']);
+  $vars['insert_class'] = $vars['widget']['insert_class'];
 
   if ($colorbox_presetname = variable_get('colorbox_imagecache_preset', 0)) {
     $vars['link_path'] = imagecache_create_url($colorbox_presetname, $vars['item']['filepath']);
