function galleria_includes in Galleria 6
Include necessary files for the galleria.
4 calls to galleria_includes()
- galleria_html in ./
galleria.module - Menu callback to create just the HTML data that gets embedded in a lightbox. Only supports attached files Gallerias, not imagefield ones.
- galleria_nodeapi in ./
galleria.module - Implementation of hook_nodeapi().
- theme_galleria_formatter_imagefield_galleria in ./
galleria.module - Theme CCK imagefield uploads in a Galleria.
- theme_galleria_lightbox_link in ./
galleria.module - Theme the link that opens a lightbox with a Galleria in it. Currently only supports Gallerias built from attached files, not imagefield.
File
- ./
galleria.module, line 13 - Turns a node into a Galleria image gallery.
Code
function galleria_includes() {
static $included = FALSE;
if (!$included) {
$modulepath = drupal_get_path('module', 'galleria');
drupal_add_css($modulepath . '/inc/galleria.css');
drupal_add_js($modulepath . '/inc/jquery.galleria.js');
drupal_add_js($modulepath . '/inc/galleria.js');
$settings = array(
'thumb_opacity' => variable_get('galleria_thumb_opacity', 0.3),
'galleria_lightbox' => module_exists('lightbox2') || module_exists('jlightbox') ? variable_get('galleria_lightbox', 'none') : 'none',
);
drupal_add_js($settings, 'setting');
$included = TRUE;
}
}