Allow alternative skins to be set through the view....

For example, you create a View, and then change the skin by putting the following into the argument handling code:

$view->jcarousel['skin'] = array(
  'name' => 'myskin',
  'css' => drupal_get_path('theme', 'mytheme') . '/jcarousel/myskin.css',
  'js' => drupal_get_path('theme', 'mytheme') . '/jcarousel/myspecialjavascriptforthecarousel.js',
);

This will load the correct CSS, apply the correct name, as well as load the special Javascript when passed.... The attached is the patch that allows this. If the jcarousel['skin'] parameter isn't set, the default is used.

CommentFileSizeAuthor
carousel_alternate_skins.patch1.03 KBrobloach

Comments

robloach’s picture

This could also tie into $view->jcarousel['settings'].......

$view->jcarousel['settings']['animation'] = 1000;
$view->jcarousel['settings']['easing'] = 'QuartEaseOut';
$view->jcarousel['settings']['visible'] = 6;
owahab’s picture

Status: Needs review » Needs work

This patch looks quite good but I am not sure this is the best fix for theming carousel views.

quicksketch’s picture

Version: » 5.x-1.x-dev
Status: Needs work » Closed (fixed)

Closing the issue queue.