' . t('About') . ''; $output .= '

' . t('Colorbox is a light-weight, customizable lightbox plugin for jQuery 1.4.3+. This module allows for integration of Colorbox into Drupal.
The jQuery library is a part of Drupal since version 5+.') . '

'; $output .= '

' . t('Configuration') . '

'; $output .= '

' . t('Go to "Configuration" -> "Media" -> "Colorbox" to find all the configuration options.') . '

'; $output .= '

' . t('Add a custom Colorbox style to your theme') . '

'; $output .= '

' . t('The easiest way is to start with either the default style or one of the example styles included in the Colorbox JS library download. Simply copy the entire style folder to your theme and rename it to something logical like "mycolorbox". Inside that folder are both a .css and .js file, rename both of those as well to match your folder name: i.e. "colorbox_mycolorbox.css" and "colorbox_mycolorbox.js"') . '

'; $output .= '

' . t("Add entries in your theme's .info file for the Colorbox CSS/JS files:") . '

'; $output .= '

' . t('stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
scripts[] = mycolorbox/colorbox_mycolorbox.js') . '

'; $output .= '

' . t('Go to "Configuration" -> "Media" -> "Colorbox" and select "None" under "Styles and Options". This will leave the styling of Colorbox up to your theme.
Make any CSS adjustments to your "colorbox_mycolorbox.css" file.') . '

'; return $output; } } /** * Implements hook_theme(). */ function colorbox_theme() { return array( 'colorbox_formatter' => array( 'variables' => array( 'item' => NULL, 'item_attributes' => NULL, 'entity' => NULL, 'settings' => NULL, ), 'file' => 'colorbox.theme.inc', ), ); }