Only 1 carousel theme added on 2 carousels with 2 different themes

chirale - September 29, 2009 - 13:08
Project:jCarousel
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Issue: On a page with 2 views carousel blocks, only one is styled by theme. A custom theme is successfully loaded, but ie7 or tango are not.

Solution: use add_css() with 'theme' as second argument (like custom theme branch).

<?php
     
if ($skin == 'tango' || $skin == 'ie7') {
       
drupal_add_css("$jcarousel/jcarousel/skins/$skin/skin.css", 'theme');
      }
?>

instead of:

<?php
     
if ($skin == 'tango' || $skin == 'ie7') {
       
drupal_add_css("$jcarousel/jcarousel/skins/$skin/skin.css");
      }
?>

2 patches attached (stable 6.x-1.1 and 6.x-dev version)

AttachmentSize
jcarousel-nocss-2themes-stable.patch594 bytes
jcarousel-nocss-2themes-dev.patch576 bytes

#1

Rob Loach - September 29, 2009 - 17:19
Status:needs review» fixed

Thanks! http://drupal.org/cvs?commit=269110

#2

System Message - October 13, 2009 - 17:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.