Posted by chirale on September 29, 2009 at 1:08pm
Jump to:
| Project: | jCarousel |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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)
| Attachment | Size |
|---|---|
| jcarousel-nocss-2themes-stable.patch | 594 bytes |
| jcarousel-nocss-2themes-dev.patch | 576 bytes |
Comments
#1
Thanks! http://drupal.org/cvs?commit=269110
#2
Automatically closed -- issue fixed for 2 weeks with no activity.