| 1 |
<?php
|
| 2 |
// $Id: jcarousellite.module,v 1.2 2009/03/07 20:40:59 owahab Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* jCarousel Lite is a jQuery plugin that carries you on a carousel ride
|
| 7 |
* filled with images and HTML content. Put simply, you can navigate
|
| 8 |
* images and/or HTML in a carousel-style widget. It is super light weight,
|
| 9 |
* at about 2 KB in size, yet very flexible and customizable to fit most
|
| 10 |
* of our needs.
|
| 11 |
*/
|
| 12 |
|
| 13 |
function jcarousellite_add($data = NULL) {
|
| 14 |
static $added;
|
| 15 |
|
| 16 |
if (!isset($added)) {
|
| 17 |
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jcarousellite.js');
|
| 18 |
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.easing.js');
|
| 19 |
drupal_add_js(drupal_get_path('module', 'jcarousellite') .'/js/jquery.mousewheel.js');
|
| 20 |
$added = TRUE;
|
| 21 |
}
|
| 22 |
if ($data) {
|
| 23 |
drupal_add_js($data, 'inline', 'footer', FALSE);
|
| 24 |
}
|
| 25 |
}
|
| 26 |
|